RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Element

Element.DeleteEntity

Method
Description:
Deletes the existing entity created by %schema% in the element
Syntax
public bool DeleteEntity(
	Schema schema
)
Parameters
Parameter Type Description
schema Schema Schema used for creation of the entity
Return Value
Type Description
Boolean True if entity was deleted, false if entity didn't exist
Exceptions
Exception Condition
ArgumentException Writing of Entities of this Schema is not allowed to the current add-in.
ArgumentNullException A non-optional argument was null