GstarCAD command

PURGE command

Command
PURGE
Alias
PU
Tool group
Utilities
Level
Beginner

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

  1. Type PURGE or its shortcut PU, then press Enter.
  2. Review the categories and items available for removal in the Purge dialog.
  3. Select individual items or choose to purge all eligible unused items.
  4. Enable Purge nested items when unused definitions contained inside other unused items should also be removed.
  5. 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.

Purge All
Removes all currently eligible unused items instead of selecting individual definitions one at a time.
Purge nested items
Removes unused items that are nested inside other unused definitions, such as layers or linetypes referenced only by an unused block.
Items that cannot be purged
Displays definitions that cannot currently be removed and helps identify why they are still required by the drawing.
-PURGE
Provides a command-line version of the purge process, useful when working without the Purge dialog or when creating automated workflows.

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.

All commands Updated 25 September 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.