Merge pull request #25916 from nextcloud/bugfix/noid/trashbin-delete-all
Remove trash items from other trash backends when deleting all
This commit is contained in:
commit
2608dec387
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue