You can only delete directories that do not contain files!

You have tried to delete a directory containing files.

This procedure is only allowed, if in the Advanced tab of the Option dialog box Allow deletion of directories containing files is selected.