# PURGE Command
[GstarCAD 2018](Help%20System/GSTARCAD/2018/Index.md) → [Commands](Help%20System/GSTARCAD/2018/Commands/(Commands).md) → [P](Help%20System/GSTARCAD/2018/Commands/P/(P).md)
The PURGE command is used to remove the unused items of graph, such as block definitions and layers.
Command Access:
> **Menu:** Application menu \> Drawing Utilities \> Purge... **Menu:** File \> Drawing Utilities \> Purge**...
> Command:** PURGE
Function Description:
Inputting "-purge" under the command prompt, it will display options.
Users could use this command to remove unused named objects, such as block definitions, annotation styles, groups, layers, linetypes and text styles, and could also remove zero-length geometry graphs and empty text objects.
**Note:** the PURGE command could not remove unnamed objects from blocks or locked layers (zero-length geometry graphs and empty text objects).

## Other versions with matching text
[GstarCAD 2016](../../../2016/Commands/P/PURGE%20Command--9b444a30efb2.md) · [GstarCAD 2017](../../../2017/Commands/P/PURGE%20Command--9b444a30efb2.md) · [GstarCAD 2019](../../../2019/Commands/P/PURGE%20Command--9b444a30efb2.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/Commands/P/PURGE%20Command--9b444a30efb2.md) · [GstarCAD 2021](../../../2021/Commands/P/PURGE%20Command--9b444a30efb2.md)