-Purge

Removes unused named objects via the command line.

1 min readUpdated: 6 November 2026

Automatically translated from German. Show original

-CLEANUP removes unused named objects such as blocks, layers, or styles from the drawing. Unlike the Purge command, this variant operates via the command line without a dialog box. It is therefore also suitable for scripts.

Available in

BricsCAD Lite, Pro, Mechanical, BIM, and Ultimate.

Here’s how to do it

  1. Type -BEREINIG in the command line (English command name: _-PURGE, alias -PU).

  2. Select the type of objects you want to purge.

  3. Confirm the prompts or purge without confirmation.

Important Options

The options are listed by their English names. They may have different names in the German interface.

  • BAtch all: Removes all unused named and nested objects without prompting.

  • Purge All: Removes all unused named objects. Select Yes to confirm each object individually; select No to purge without prompting.

  • Individual Types: Blocks, layers, line types, dimension styles, text styles, table styles, multi-leader styles, multi-line styles, plot styles, materials, groups, shapes, visual styles, detail and section view styles, and RegApps.

  • Zero-length geometry: Removes objects with zero length.

  • Empty text entities: Removes empty text objects.

  • Orphaned data: Scans the drawing and removes unused DGN line style data.

Notes

  • Only user-defined visual styles can be cleaned up; built-in styles cannot.

  • Regapps are identifiers that add-on programs use to attach data to objects.

  • BAtch all is convenient for scripts because it does not prompt for confirmation.

For further assistance, please contact CAD Deutschland Support.

Was this article helpful?