Help in creating a custom button, plez

And the Confirm-ScriptAddin should give you a proper confirmation dialog, listing affected items:

Confirm MSG="Really delete {#selitems$} items?\n" TITLE="Delete Folders" ITEMS={allfile$}

Combined:

Select NONE
SelectEx FOLDERS LINEAR MAXSIZE=100kb ITEMCOUNTPERC=100 MAKEVISIBLE DESELECTNOMATCH
Confirm MSG="Really delete {#selitems$} item(s)?\n" TITLE="Delete Folders" ITEMS={allfile$}
Delete QUIET

The "Select NONE" at the top is required because of some specific DO magic.
The Confirm Script-Addin can be found here (still missing some more detailed description):
https://www.directory-opus.de/forum/viewtopic.php?p=1644#p1644

Et voilĂ  o):

EDIT: Url to script addin updated (german DO forum was closed / reopened).