This document is archived and information here might be outdated.  Recommended version.


IDataset.Delete Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDataset Interface > IDataset.Delete Method
ArcGIS Developer Help

IDataset.Delete Method

Deletes this dataset.

[Visual Basic .NET]
Public Sub Delete ( _
)
[C#]
public void Delete (
);
[C++]
HRESULT Delete(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Errors Returned

FDO_E_FEATURECLASS_NETWORK_CANNOT_DELETE

The feature class is in a geometric network and cannot be deleted until the geometric network is deleted.

FDO_E_FEATURECLASS_TOPOLOGY_CANNOT_DELETE

The feature class is in a topology and cannot be deleted until the topology is deleted.

FDO_E_OBJECT_IS_DELETED

The feature class has either already been deleted or it has been moved into or out of a feature dataset.

Functional License Check

If your application/site is not appropriately licensed, Delete can return an error of FDO_E_NO_OPERATION_LICENSE.

Remarks

Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.

See Also

IDataset Interface