# PURGE Command
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [P](Help%20System/GSTARCAD/2027/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/2027/Commands/03%20Dialog%20Boxes/P/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 (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Removing%20Objects%20and%20Correcting%20Mistakes.md)
**Related Tasks:**
- [To Purge Unused Linetype Definitions (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Purge%20Unused%20Linetype%20Definitions.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_P/PURGE.html) · © Gstarsoft Co., Ltd.