When I use the API to delete a folder with:
https://api.dropboxapi.com/2/files/delete_v2
If the path to the folder is:
/somepath/mydomain.com
The folder will not delete. Interestingly, an empty json string is returned from the Dropbox API server.
I am going to call this a bug, because it states in the Dropbox API documentation that folders, that developers should avoid using a . (period) or a space at the end of a file or folder name, but not in the middle of a folder or file name.