Delete All Folders Except One

Is there some code to use to make a button that will delete all folders except one.

Example:
Updates
William
Patrick
Jon

I am looking for a button that will delete the all folders, except the one called "- Updates".

Any help will be greatly appreciated.

Shawn

You could make a test using something like this code:

Select ALL
Select Deselect "- Updates"
delete

Note that it also will delete all non-folders. If there are any, you possibly need to modify this code.

Or perhaps this may be useful.
I'm only guessing at the moment.

Select FILTERDEF type match folder and name nomatch Updates
Delete

Note that FILTERDEF requires Opus 13.

I tried to make the example simple, but I guess I need to elaborate.

In the example, the contents of the folder would be:
Updates
William
William.zip
Patrick
Patrick.zip
Jon
Jon.zip

I am looking to delete all the folders, with the exception of "Updates".

I don't have Opus 13 yet, but plan to update to that version once it is out of Beta, or whatever it is called

Thanks.

Shawn

So, do you mean to keep the Zip-Files and the "Updates" folder? If so, you can use

Select ALL
Select Deselect "Updates"
Select Deselect *.zip
delete

This was proposed as an addition to the mutlifunction display in DO13 as an improvement.
Unfortunately, the topic received very little attention.
Was a frequent request, since the DO9, in the old German forum (was deleted).

Delete ~(Updates|*.*)

Which proposal do you mean? Can you link to a thread here about it?