Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OrganizationServiceContext.DeleteObject Method

Definition

Namespace:
Microsoft.Xrm.Sdk.Client
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
DeleteObject(Entity)

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

DeleteObject(Entity, Boolean)

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

DeleteObject(Entity)

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

public:
 void DeleteObject(Microsoft::Xrm::Sdk::Entity ^ entity);
public void DeleteObject(Microsoft.Xrm.Sdk.Entity entity);
member this.DeleteObject : Microsoft.Xrm.Sdk.Entity -> unit
Public Sub DeleteObject (entity As Entity)

Parameters

entity
Entity

The tracked entity to be changed to the deleted state.

Remarks

All links to the specified entity are also marked deleted.

Applies to

DeleteObject(Entity, Boolean)

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

public:
 void DeleteObject(Microsoft::Xrm::Sdk::Entity ^ entity, bool recursive);
public void DeleteObject(Microsoft.Xrm.Sdk.Entity entity, bool recursive);
member this.DeleteObject : Microsoft.Xrm.Sdk.Entity * bool -> unit
Public Sub DeleteObject (entity As Entity, recursive As Boolean)

Parameters

entity
Entity

The tracked entity to be changed to the deleted state.

recursive
Boolean

true to specify entities to be deleted recursively, otherwise false.

Remarks

All links to the specified entity are also marked deleted.

Applies to