Looks promising but it doesn't seem to delete the hidden groups.
I have made a photoshop file with all the layer/groups with instructions linked below.
Basically, i just want the green layers left on this psd file after the script runs.
Can this be done with photoshop scripting? I just want to purge the documents to get them to a manageable size and make them more workable. Some of them have hundreds of hidden layers / groups which is making the psd size way too big to collaborate with.
Thanks for any help. Dan