# PURGE Command [GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [P](Help%20System/GSTARCAD/2022/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/2022/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:** > ![](GCADICO_PURGE.png) > **Menu:** File \> Drawing Utilities \> Purge**...** > **Ribbon:** / > **Toolbar:** / > **Command:** PURGE > **Alias:** PU **Command Prompts: /**