OrganizationServiceContext.DeleteObject Method (Entity, Boolean)


Applies To: Dynamics CRM 2015

Changes the state of the specified entity to be deleted in the OrganizationServiceContext.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)


public void DeleteObject(
    Entity entity,
    bool recursive
void DeleteObject(
    Entity^ entity,
    bool recursive
member DeleteObject : 
        entity:Entity *
        recursive:bool -> unit
Public Sub DeleteObject (
    entity As Entity,
    recursive As Boolean


  • recursive
    Type: System.Boolean

    Type: Boolean. true to specify entities to be deleted recursively, otherwise false.


All links to the specified entity are also marked deleted.

See Also

DeleteObject Overload
OrganizationServiceContext Class
Microsoft.Xrm.Sdk.Client Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright