# PURGE Command [GstarCAD 2011](../../Index.md) → [Commands](../%28Commands%29.md) → [P](%28P%29.md) ## Function Description: > Remove unused named items, such as block definitions and layers, from the drawing **Command Entry**: > -PURGE Command Prompt: > Purge: \[baTch/All/Blocks/Dimstyles/LAyers/LTypes/STyles\]: Enter an option > > **All > (A)** > > Remove all unused named items. > > **Blocks(B)** > > Remove all unused named blocks. > > **Dimstyles(D)** > > Remove all unused named Dimstyles in current drawing. > > **LAyers(LA)** > > Remove all unused named layers. > > **LTypes(LT)** > > Remove all unused named linetypes. > > **STyles(ST)** > > Remove all unused named textstyle. ## Other versions with matching text [GstarCAD 2012](../../../2012/Commands/P/PURGE%20Command%20%28Command%20Line%29.md)