How to Batch Purge AutoCAD Drawings
Published June 2026 | 74mph Solutions
Every AutoCAD drawing accumulates dead weight over time: unused blocks, layers that were imported but never drawn on, linetypes from old standards, leftover dimension styles, and text styles from copy-pasted content. The PURGE command cleans all of this out, reducing file size and eliminating the confusion of ghost layers cluttering the layer panel.
The problem is that PURGE only works on the drawing you have open. If you have 200 drawings to clean up before archiving a project or delivering to a client, running PURGE manually on each one is a full day's work. Batch purging automates the entire run.
Why Batch Purge Matters
Before a project archive or a client delivery, bloated DWG files are a real problem:
- Large file sizes slow down Vault, SharePoint, and network drives
- Imported block libraries from early design phases leave hundreds of unused block definitions
- Layer lists from xref-heavy workflows can run to hundreds of entries, most never used
- Old dimension styles and text styles from copied content create inconsistencies
- Audit errors left unchecked can cause AutoCAD to crash or corrupt files over time
Running PURGE and AUDIT across every drawing in a project set eliminates all of this in a single automated run.
How to Batch Purge with Hurricane
Hurricane for AutoCAD drives the standard AutoCAD PURGE and AUDIT commands across your entire drawing set automatically. It opens each DWG, runs the commands you specify, saves, and closes, then moves to the next file. Here is how to set it up:
- Add your files. Drag and drop your DWG files or folders into Hurricane's file list. You can add an entire project folder, including subfolders, in one step.
- Select the Purge script. Hurricane includes a built-in Purge script in its script library. Select it from the dropdown. For a deeper clean, combine PURGE with AUDIT in the same script run.
- Set your options. Choose whether to run PURGE once or multiple passes (recommended for deeply nested unused items that only become purgeable after a first pass removes dependencies).
- Click Create and Run. Hurricane generates the batch script and hands it to AutoCAD. Each drawing opens, gets purged, saves, and closes automatically.
- Review the log. Hurricane records the result for each file. Any drawing that produced an error during the purge run is flagged for review.
PURGE vs PURGE ALL
Standard PURGE prompts you to confirm each item before removing it. In a batch context that is not practical. Hurricane's batch purge uses -PURGE ALL * NO which purges all purgeable items without prompting, in a single pass. For maximum cleanup, run the purge command twice in the same script, since the first pass may expose additional items that become purgeable once their dependencies are removed.
Combining Purge and Audit
AUDIT scans a drawing for database errors and optionally fixes them. Running AUDIT immediately after PURGE in the same script is best practice before any archive delivery. A Hurricane batch script that runs both looks like this in the command sequence:
1) Open drawing, 2) PURGE ALL, 3) PURGE ALL again, 4) AUDIT with fix enabled, 5) Save, 6) Close. Hurricane's Command Capture tool lets you record exactly this sequence from AutoCAD's command line and convert it into a reusable batch script.
Works with AutoCAD LT
Batch purge is one of the features that works fully in AutoCAD LT. PURGE and AUDIT are both standard AutoCAD commands available in LT, so Hurricane can automate them in LT workflows without any limitations. No LISP required.
How Much File Size Can You Recover
Results vary depending on how the drawings were created and what was imported into them, but it is common to see:
- 30 to 60 percent file size reduction on drawings that have been worked on for months and accumulated unused imports
- Files that were 5MB+ dropped to under 1MB after purge and audit
- Layer counts reduced from 400+ to the actual working layers used in the project
AutoCAD LT users:
Batch purge and audit work fully in AutoCAD LT. Hurricane drives LT's standard PURGE and AUDIT commands the same way it does in full AutoCAD.
Clean Your Entire Drawing Set Automatically
Hurricane batch purges and audits hundreds of DWG files in one run. Free trial, no time limit.
Download Free Trial Buy Now - $149/seatRelated: How to Batch Plot AutoCAD | Batch Rename DWG Files | AutoCAD LT Batch Processing | All Hurricane Features