Delete unused empty layers
Would love to have the possibility to delete unused layers in Illustrator (like you can delete unused colors very quickly).
e.g. when you have 100 layers and only 10 layers have objects on them, but you don't want to delete every layer manually
-
There is a script you can use to di this:
https://aiscripts.com/delete-empty-layers-script/Also, there is a script-less solution, mentioned in comments on the page above:
1. Unhide every layer including empty layers
2. Ctrl+A to select all
3. Ctrl+X to cut it out
4. Flatten Artwork in the Layers panel’s menu
5. Check Paste Remembers Layers in this menu
6. Ctrl+F to paste as it was before, but without empty layers
This can be a heavy operation, so be careful.