Not able to delete folders

Dear all,
This is the error i receive from the log everytime I try o delete a folder

OCA\DAV\Connector\Sabre\Exception\Forbidden: Invalid path

/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php - line 183:


/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 295:

Sabre\DAV\Tree->delete("files/simon ... r")

/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:

Sabre\DAV\Server->emit("method:DELETE", [ Sabre\HTTP ... }])

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 251:

Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 319:


/var/www/html/apps/dav/lib/Server.php - line 320:


/var/www/html/apps/dav/appinfo/v2/remote.php - line 35:


/var/www/html/remote.php - line 167:

require_once("/var/www/ht ... p")

Are there any files in that folder, and if yes, are they accessable?

  • Have you done a sudo -u www-data php occ files:scan --all ?
  • Files/folders owned by web server (www-data) and can be deleted (perm 660) ?

Yes done.
I have 770 as permission.But still same problem.
The problem occur when I try to delete a folder with multiple nested files and folders.
If i delete single files no problem

Hi @babaz,

Are the directories / files you are trying to delete located on an external mount or local?