Remove trash items from other trash backends when deleting all

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-03-03 14:26:35 +01:00
parent a1be5f33af
commit 930b40bd8a
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ class TrashRoot implements ICollection {
public function delete() {
\OCA\Files_Trashbin\Trashbin::deleteAll();
foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) {
$this->trashManager->removeItem($trashItem);
}
}
public function getName(): string {