$ 0 0 This hardly seems worth the effort of creating a Script, ctrl-shift clicking the visibility icon and selecting "Hide all other layers" then "Delete Hidden Layers" from the Layers Panel’s fly-out menu would seem easy enough.