Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Can you make a macro to delete everything that is not in a FOLDER ?

I have a lot of stuff in my campaign, but I want to delete almost everything, but not all. Now I'm moving all these stuffs one-by-one to a folder and then going to delete it. But if there was a option to delete everything that's not in a folder could be awesome! And I really don't know why do you dont give as a multi delete option. Because if a player do it by accident, he can still roll back everything! Ty
1562968478
GiGs
Pro
Sheet Author
API Scripter
I dont think the API has access to folder structure, unfortunately. If you are planning to delete most of the stuff in the campaign, since you're Pro user, it is probably quicker to copy the campaign and in the form that asks you what you want to copy, deselect everything. (Or just create a new campaign.) Then use the transmogrifier to copy over the stuff you want to keep to the copied or new campaign.
1562969962
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yes, you can. The API has read only access to the folder structure, so it'd be relatively easy to find the I'd of everything not in a folder and delete it.
Already deleted everything I want, the problem to copy the campaign is like, you will copy ALL tokens and ALL characters, there is no option to select just the tokens and characters you want, right? 
1562973998
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just a caveat: A rollback does not restore deleted art library assets, only game states.
1562974433
GiGs
Pro
Sheet Author
API Scripter
Scott C. said: Yes, you can. The API has read only access to the folder structure, so it'd be relatively easy to find the I'd of everything not in a folder and delete it. My special talent: answer incorrectly to ensure someone comes along and gives the correct answer! More seriously: that's handy, I'd missed that. Daniel Maioni said: Already deleted everything I want, the problem to copy the campaign is like, you will copy ALL tokens and ALL characters, there is no option to select just the tokens and characters you want, right?  This is why I suggested using the transmogrifier.  That allows you to copy individual characters, maps, etc.
Man! What a awesome tool!! Thanks a lot for this transmogrifier!! It solves my problems!!!