Clean Command for Discarding Unused References

The Clean command removes unused references from the drawing. You can remove block definitions, entity groups, layers, defined drafting styles (for example, line styles, text styles, dimension styles, and rich line styles), and other references if they are not referenced by other definitions or entities in the drawing file.

You can apply the command to all component types or to selected ones.

Discarding unused references can reduce file size of a drawing. This command is useful before archiving or backing up drawings.

The Clean command does not remove defined views or coordinate systems because they are never referenced by another component of the drawing. To remove defined views, use the Views command. To remove defined coordinate systems use the CCS or CSStyle commands.

You cannot discard the following:

  • Layer 0 (there must be at least one layer in the drawing)
  • The Continuous, ByLayer, and ByBlock line styles
  • The Standard text style
  • The Standard table style
  • The Standard rich line style
  • Layers that contain drawing entities
  • Line styles, text styles, table styles, and rich line styles referenced by drawing entities
  • The active layer, line style, text style, table style, and rich line style