Dropbox cowardly refuses to delete directories with content. Raise the appropriate error in this case.
Be more specific in detecting the error.