Hide Table of Contents

-Clean

Use the -Clean command to purge the drawing file of Block definitions, EntityGroups, Layers, LineStyles, TextStyles, and DimensionStyles that are defined or loaded but not used in the drawing.

It is the command window variant of the Purge command.

You can selectively use the command based on types of items or names of items. With nested Blocks in the drawing file, only one level of nesting is cleaned at a time.

Clean a drawing to significantly reduce its file size before archiving or backing up a drawing file.

Some standard items cannot be deleted, including Layer 0, the LineStyle Continuous, and the TextStyle Standard.

The command does not clean user-defined Views and Custom Coordinate Systems (CCSs) because these items are never referenced by drawing entities. Instead, you can delete unused Views and CCSs using the Views or CSStyle commands.

To remove unused references from drawing files:

  1. Type -Clean at the command prompt.
  2. Specify the types of items to discard and press Enter to complete the selection.

    You can clean Block definitions, EntityGroups, DimensionStyles, Layers, LineStyles, PrintStyles, Shapes, TextStyles, RichLineStyles, or TableStyles selectively, or clean all unused user-defined references.

    To clean up selectively, specify the item to clean. You are prompted with the names of unused user-defined references.

    Specify the All option to clean the entire drawing in one operation. Use wildcard specifications to limit the selection, for example, TEMP*.

Access

Command: -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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Command -Clean
*Comment:  
*   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:

x

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
x

Web Help Content Version: 2019 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.