# PURGE Command
[GstarCAD 2025](Help%20System/GSTARCAD/2025/Index.md) → [Commands](Help%20System/GSTARCAD/2025/Commands/(Commands).md) → [P](Help%20System/GSTARCAD/2025/Commands/P/(P).md)
## Function Description:
This command is used to remove unused items from drawings, such as block definitions, dimension styles, groups, layers, linetypes and text styles. Zero-length geometry and empty text objects can also be removed. The [Purge dialog box](Help%20System/GSTARCAD/2025/Commands/03%20Dialog%20Boxes/PURGE%20Dialog%20Box.md) is displayed.
If you enter -PURGE at the Command prompt, options are displayed.
**Note:** The PURGE command can not remove unnamed objects from blocks or locked layers (zero-length geometry and empty text objects).
## Command Access:
> **Icon:** 
> **Menu:** File > Drawing Utilities > Purge**...**
> **Ribbon:** /
> **Toolbar:** /
> **Command:** PURGE
> **Alias:** PU
**Command Prompts: /**
---
**Related References:**
- [Commands about Removing Objects and Correcting Mistakes](Help%20System/GSTARCAD/2025/Commands/00%20Command%20Groups/Commands%20about%20Removing%20Objects%20and%20Correcting%20Mistakes.md)
**Related Tasks:**
- [To Purge Unused Linetype Definitions](Help%20System/GSTARCAD/2025/Commands/01%20Procedures/To%20Purge%20Unused%20Linetype%20Definitions.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2025_en-US/detail/commandReferences/PURGE.html) · © Gstarsoft Co., Ltd.