...
Delete certain types of objects in a folder
Note: you need the appropriate ADMIN privileges on any objects you are deleting. The counts should match how many objects you have ADMIN on, though it does not see if the folders are or will be empty for that count.
Long running task
The delete function runs in a thread and will return in 1 minute. If there are too many objects to delete, it will run in the background. Note: when it is complete, the folder will be deleted but no feedback will be given to the user. Check back to see the progress.
...