diff --git a/apps/files_trashbin/lib/Sabre/TrashHome.php b/apps/files_trashbin/lib/Sabre/TrashHome.php index 45a95ccea800da6c44656d1712c3f7a1f07d1035..9c460dbba2042d1b2a436f7cb1b99d48c49df771 100644 --- a/apps/files_trashbin/lib/Sabre/TrashHome.php +++ b/apps/files_trashbin/lib/Sabre/TrashHome.php @@ -44,7 +44,7 @@ class TrashHome implements ICollection { } public function delete() { - throw new Forbidden('Permission denied to delete your trashbin'); + \OCA\Files_Trashbin\Trashbin::deleteAll(); } public function getName(): string {