PURGE

The PURGE command removes unused, named AutoCAD objects, such as blocks, layers, and styles, from a drawing.

Because PURGE purges only AutoCAD objects, in AutoCAD MEP 2025 toolset you should purge unused building systems objects first, and then use the Style Manager to purge unused system definitions.