Purge Unused Layers

Add-on:  QCAD Pro Tools
Menu: Layer - Purge Unused Layers
Shortcut: Y, P
Commands: purgelayers