# "Purge"Dialog Box [GstarCAD 2018](Help%20System/GSTARCAD/2018/Index.md) → [Commands](Help%20System/GSTARCAD/2018/Commands/(Commands).md) → [03 Dialog Boxes](Help%20System/GSTARCAD/2018/Commands/03%20Dialog%20Boxes/(Dialog%20Boxes).md) The PURGE dialog box is used to remove unused items in the drawing, such as block definitions and layers. ## Dialog Box Description: List all items that could be purged. ![](Help%20System/GSTARCAD/2018/assets/GCAD_GCR/images/PURGE_DIA-1.png) ![](Help%20System/GSTARCAD/2018/assets/GCAD_GCR/images/PURGE_DIA-2.png) Relative Glossary: **Named Objects** > **View items you can purge** > Display the summary of named objects to be purged in current drawing in tree view. > **Items not used in drawing** > List unused named objects which to be purged in current drawing. > Users could list any object types of items by clicking "\+" or double-clicking object type. They could purge the item by selecting it. > "Purge nested items" option could only be available when selecting "All items" or "Block" in tree view, or "Purge All". > **View items you cannot purge** > Switch to display the summary of named objects that could not be purged in the current drawing in tree view. > **Items currently used in drawing** > List named objects that could not be purged in the drawing. > Most of those objects are used in current drawing or the default items which could not be removed. > When selecting a single named object, it will display the reason for failure to purge in the tree view. > **Confirm each item to be purged** > It displays the "Purge – Confirm Purge" dialog box when purging items. > Purge nested items > Purge all unused named objects from drawing, even thoes objects that nested in other unused named objects or referenced by them. > It displays the "Purge – Confirm Purge" dialog box, from which users could confirm or cancel. > **Tip** > Display the detail reason for failure to purge. **Unnamed Objects** > **Purge Zero-lengthe geomentry and empty text objects**Except blocks, remove Zero-length geomentry (lines, arcs, polylines and so on), as well remove empty text object and Mtext containing space. **Purge** Purge selected items. **Purge All** Purge all unused items. ## Other versions with matching text [GstarCAD 2016](../../../2016/Commands/03%20Dialog%20Boxes/Purge-Dialog%20Box.md) · [GstarCAD 2017](../../../2017/Commands/03%20Dialog%20Boxes/Purge-Dialog%20Box.md) · [GstarCAD 2019](Help%20System/GSTARCAD/2019/Commands/03%20Dialog%20Boxes/Purge-Dialog%20Box.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/Commands/03%20Dialog%20Boxes/Purge-Dialog%20Box.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/Commands/03%20Dialog%20Boxes/Purge-Dialog%20Box.md)