A 4 MB drawing that somehow became 60 MB is not just an annoyance — every unnecessary block, layer and regapp stays resident in RAM while the file is open. That means slower saves, slower pans, and a much higher chance of an out-of-memory error. This is the cleanup routine we recommend before handing drawings over.
The dialog version is convenient, but the command-line version cleans more thoroughly and can remove nested items in one pass.
-purge (with the hyphen).Enter and repeat the whole command 2–3 times. Nested blocks only disappear on the second or third pass.Registered application IDs are the most ignored source of bloat. Type -purge → R (Regapps) → All → No. On drawings that have passed through several offices, this alone can cut the file size by 30–60%.
-purge → Z (Zero-length geometry) and E (Empty text objects).OVERKILL on imported linework to delete duplicates and combine collinear segments.Type AUDIT and answer Yes to fix detected errors. Run it until it reports zero errors. If the drawing still misbehaves, use RECOVER to open it, or WBLOCK the content into a brand-new file — often the only cure for deeply corrupted drawings.
Type -scalelistedit → R (Reset) to restore the default scale list. A drawing with 2000 accumulated scales is measurably slower to open and plot.
AUDIT once more — it should report no errors.PURGE cleans the file. It does nothing about memory AutoCAD wastes during the session — undo history, regen caches and released-but-not-returned RAM. That is why a freshly purged drawing can still slow down after a few hours of work. CadMemFree handles that second half: it reclaims idle memory inside a running AutoCAD session, so the cleanup you did in the file stays effective all day.
Before every handover, and any time you paste large amounts of content from another drawing.
Purge only removes items that are not used in the drawing. Still, keep a backup and never purge on the only copy of a file.
Nested definitions. Purge again — most drawings need two or three passes before the size stops dropping.
Clean the file with PURGE, then keep the session clean too — download CadMemFree free or see pricing.