2021 Method Back to 2021
M

EraseSchemaAndAllEntities

Version comparison

Per-version detail

Click a version below to see what changed in that release vs your current frame (2021).
Not present in: 2023, 2024, 2025, 2025.3, 2026, 2027
2021 current
Schema.EraseSchemaAndAllEntities(Schema, Boolean)
Became obsolete in 2021: This method is deprecated in Revit 2021 and may be removed in the future version of Revit. To erase the schema and all its entities in one document, call document.EraseSchemaAndAllEntities().
schema Schema The Schema to erase.
overrideWriteAccessWithUserPermission Boolean Normally, the usual write access controls apply to prevent deletion of Entities that you don't have write permissions for. However, the user may choose to override the controls. Set this flag to true only if the user gave explicit permission to destroy the Schema.
Schema.EraseSchemaAndAllEntities(Schema, Boolean)
Obsolete in both versions: This method is deprecated in Revit 2021 and may be removed in the future version of Revit. To erase the schema and all its entities in one document, call document.EraseSchemaAndAllEntities().
schema Schema The Schema to erase.
overrideWriteAccessWithUserPermission Boolean Normally, the usual write access controls apply to prevent deletion of Entities that you don't have write permissions for. However, the user may choose to override the controls. Set this flag to true only if the user gave explicit permission to destroy the Schema.