What does PURGE do?
PURGE removes unused named items and redundant data from the current drawing. These can include unused block definitions, layers, linetypes, text styles and dimension styles that remain stored in the DWG even though they are no longer required. Removing unnecessary definitions can simplify a drawing and may help reduce its file size.
How to use the command
- Type
PURGEor its shortcut PU, then press Enter. - Review the categories and items available for removal in the Purge dialog.
- Select individual items or choose to purge all eligible unused items.
- Enable Purge nested items when unused definitions contained inside other unused items should also be removed.
- Confirm the purge operation and repeat it if additional nested items become available for removal.
Command: PU ↵
Purge dialog: select unused items
Purge nested items: enable if required
Purge All: confirm
Key PURGE options
The Purge dialog helps you control which unused drawing definitions are removed and which are retained.
Practical example: clean an imported DWG
Suppose an architectural DWG received from another company contains dozens of unused layers, old block definitions and linetypes that are no longer needed. Start PURGE, review the available items and enable Purge nested items. Choose Purge All and confirm the operation. GstarCAD removes eligible unused definitions while leaving geometry and definitions that are still referenced by the drawing intact.
Tip
For a more complete DWG clean-up, use AUDIT to check drawing integrity, PURGE to remove unused definitions and OVERKILL to remove duplicate or overlapping geometry.
Important
Not every layer or definition can be purged. Items that are currently in use, referenced by drawing objects or nested inside referenced content must remain until those references are removed.