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 ( _
public void Delete (

Product Availability

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

Errors Returned


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


The feature class is in a topology and cannot be deleted until the topology 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.


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

See Also

IDataset Interface