Skip to main content
Known Participant
April 4, 2024
Question

Hidden items

  • April 4, 2024
  • 1 reply
  • 200 views

I have several hidden items in many different layers that I would like to delete all at once. I don't know how to do this. If I hide something and then show all, all the hidden things a designer hid are exposed and there is a ton of stuff.

 

HELP PLEASE

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

rob day
Community Expert
Community Expert
April 4, 2024

It could be scripted, something like this, make sure you run the script on a copy in case you get an unexpected result:

 

var api = app.activeDocument.allPageItems;
for (var i = 0; i < api.length; i++){
    try {
        if (!api[i].visible) {
            api[i].remove()
        } 
    }catch(e) {}
};