Request

Response

    IElementDataModel.DeleteElementByUniqueId method

    Deletes an element identified by its system-generated unique persistent Id. Unlike DeleteElementsBySourceId, this method unambiguously identifies the element to delete even when multiple elements share a SourceId.

    public bool DeleteElementByUniqueId(string uniqueId)
    
    parameterdescription
    uniqueId The unique persistent Id of the element to delete (see UniqueId).

    Return Value

    True if the element was found and deleted; false when no element with the specified unique Id exists.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when uniqueId is null.
    ArgumentException Thrown when uniqueId is empty.

    See Also