Delete collections by name

What is the syntax to delete collections containing a certain name?

Something like

Delete *test* Removecollection=auto

doesn't work for some reason.
I want to remove collections containing certain names with a partial match, like test123 or 123test.

(note, the forum software can't handle asterisks, so the # stands for an asterisk).

@Hardkorn, thanks, i have changed that.

There’s a link above the post editor that explains how to put them in your posts and lots of other useful things like code blocks. Please read and use it.

Thanks. But what about the collections? Why doesn't

Delete *test* Removecollection=auto

work? There has to be a way to avoid hand selecting every file in order to clean up the Collections.

The online manual mentions a case like

Delete FILTERDEF name match *.zip and size match > 2 mb

but nothing about a partial name match like in my example.

Removecollection removes things from inside collections. It doesn't delete collections.

Which folder are you in when you run the command?

Are we talking about top-level collections or sub-collections inside others?

1 Like

They are top level collections. I was assuming, that Removecollection would work on folders inside coll://, and also on contents of those. I have also tried a delete filter inside the command, but also couldn't figure out the partial match for that. So basically i want to make a button to remove collection items, that partially match a certain name.

Looks like Delete, collections and wildcards don't mix.

This works:

Delete coll://test

This does not:

Delete coll://*test*

This will

Go coll://
Select *test*
Delete
1 Like

Thanks, that works!