Revert "Don't delete containing folder from database when deleting last content element"

This reverts commit 5239eb30c6d64e45671d18308a85096ac09711f4.
[BUGFIX] Fix deletion of object

 * Remove only parent from object table not details to keep inotify
 * Remove it recursivelly on empty container