User Guide > Express tool > Drawing Tools > Batch Purge
Function Description:
This new function allows to batch purge the excess objects such as blocks, layers, linetype, dimension style or text style on several DWG files. The BATPURGE command doesn't need to open files. It executes the command of purge directly, which makes it run with very high efficiency.
Four new types of purge have been added to GstarCAD 2026, including: Regapps, Zero geometry, Empty text objects and orphaned data.
Command Access:
Icon:
Menu: Express > Drawing Tools > Batch Purge
Ribbon: Express > Drawing > Batch Purge
Toolbar: /
Command: BATPURGE
Alias: /
Command Prompts: /
The DWG Files Batch Purge dialog box is displayed.

Dialog Box Options:
Lists the files to purge.
Only files selected by the user are added to the current list.
Add all files in the directory specified by the user to the list.
Selects all files in the Files List.
Makes all files in the Files List unselected.
Removes the selected file from the Files List.
Removes all files in the Files List.
Deletes the registered application (REGAPP data).
Deletes geometry of zero length, including lines, arcs, circles, and polylines.
Deletes mtext and text objects that contain only spaces without any text.
Performs a drawing scan and removes obsolete DGN linestyle data when you open the Purge dialog box.
Starts to purge files.
Creates a log file, which contains the result of the purge operation and other information.
Article ID: 4502
Created: September 26, 2026
Last Updated: September 25, 2026
Author: kbadmin
Online URL: https://kb.gstarcad.com.my/article/batpurge-command-gstarcad-2027-4502.html