diff --git a/apps/files_trashbin/lib/Sabre/TrashHome.php b/apps/files_trashbin/lib/Sabre/TrashHome.php index 45a95ccea8..9c460dbba2 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 {