ElementDataModel.DeleteElementByUniqueId method
Deletes an element identified by its system-generated unique persistent Id. Unlike String), this method unambiguously identifies the element to delete even when multiple elements share the same Id. This will also delete any hierarchical structure within the element. However, shared model structure will not be removed.
public bool DeleteElementByUniqueId(string uniqueId)
| parameter | description |
|---|---|
| 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.
See Also
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels