ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / Table Class / DeleteRows Method
The specified query used to delete the rows in the database.

In This Topic
    DeleteRows Method
    In This Topic
    Deletes the rows in the database selected by the specified query. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void DeleteRows( 
       QueryFilter queryFilter
    )
    Public Sub DeleteRows( _
       ByVal queryFilter As QueryFilter _
    ) 

    Parameters

    queryFilter
    The specified query used to delete the rows in the database.
    Exceptions
    ExceptionDescription
    queryFilter is null.
    This table/feature class does not support this operation. For example, it is a joined table.
    A geodatabase-related exception has occurred.
    Remarks
    If queryFilter is a default filter, i.e., without any of its properties set, then all of the rows in this table will be deleted.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also