Hide Table of Contents

Discarding Unused References

The Clean command removes unused references from the drawing. You can remove Block definitions, EntityGroups, Layers, defined drafting styles (such as LineStyles, TextStyles, DimensionStyles, and RichLineStyles), and other references as long as 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 a drawing's file size. 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:

  • Layer 0 (there must be at least one layer in the drawing)
  • The LineStyles "Continuous", "ByLayer", and "ByBlock"
  • The TextStyle "Standard"
  • The TableStyle "Standard"
  • The RichLineStyle "Standard"
  • Layers that contain drawing entities
  • LineStyles, TextStyles, TableStyles, and RichLineStyles referenced by drawing entities
  • The active layer, LinesStyle, TextStyle, TableStyle, and RichLineStyle

To discard unused references:

  1. Click Format > Clean (or type Clean).
  2. Click File > Clean (or type Clean).
  3. In the dialog box, select Show unreferenced entities.
  4. Set options:
    • Delete dependent entities: Removes items and subordinate items that are not referenced by other entities.
    • Confirm before delete: Displays the Confirm Clean dialog box for each item to remove.
  5. Click Delete to discard the selected items.

    - or -

    Click Delete All to discard all unused items.


Command: Clean

Menu: Format > Clean

Menu: File > Clean

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   Discarding Unused References
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: 2023 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.