Not quite an answer to the question but…why doesn’t Photoshop have the feature found on Illustrator where you get the warning "Layer XX contains artwork" before you delete it.
Then you are certain that it is an "unused" layer"
Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!
Related Discussion Topics
Nice and short text about related topics in discussion sections