GstarCAD command

BATPURGE command

Command
BATPURGE
Alias
—
Tool group
Utilities
Level
Intermediate

What does BATPURGE do?

BATPURGE cleans multiple DWG files in a single batch without requiring each drawing to be opened manually. It can remove unnecessary drawing data such as unused blocks, layers, linetypes, dimension styles and text styles. This makes the command particularly useful when maintaining large project folders containing many drawings that need regular clean-up.

How to use the command

  1. Type BATPURGE, then press Enter.
  2. Choose Add Files to select individual DWG files or Add Folder to add drawings from an entire directory.
  3. Enable the option to include subfolders when drawings inside nested directories should also be processed.
  4. Select the files in the list that you want to clean.
  5. Choose the required clean-up options and start the batch purge.
  6. Review the log after processing to check the result for each drawing.
Command: BATPURGE ↵
DWG Batch Purge: Add Folder
Include subfolders: enable if required
File list: select drawings
Purge options: choose items to clean
Batch Purge: Start

Key BATPURGE options

The batch purge interface controls which drawings are processed and what unnecessary data is removed.

Add Files
Adds individual DWG files from one or more locations to the batch clean-up list.
Add Folder
Adds DWG files from an entire directory, making it faster to clean complete project folders.
Include subfolders
Includes drawings stored inside subdirectories of the selected folder in the batch operation.
Additional clean-up
GstarCAD 2026 can also clean registered applications, zero-length geometry, empty text objects and orphaned drawing data.
View Log
Displays information about the completed batch operation and the results for the processed drawing files.

Practical example: clean an entire project folder

Suppose an architectural project contains 80 DWG files distributed across several folders. Instead of opening every drawing and running PURGE individually, start BATPURGE and add the main project directory. Enable subfolders, select the required drawings and start the clean-up. GstarCAD processes the selected files without opening them individually, removing eligible unnecessary data and making large drawing sets much easier to maintain.

Tip

Use PURGE when cleaning a single open drawing and BATPURGE when many DWG files need the same maintenance. For project archives or large drawing libraries, batch processing can save considerable time.

Important

BATPURGE does not process read-only drawing files. Review the batch log after the operation to identify files that were skipped or could not be cleaned.

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.