Remove trash items from other trash backends when deleting all
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3c07ae86ea
commit
deb01f04da
|
@ -50,6 +50,9 @@ class TrashRoot implements ICollection {
|
||||||
|
|
||||||
public function delete() {
|
public function delete() {
|
||||||
\OCA\Files_Trashbin\Trashbin::deleteAll();
|
\OCA\Files_Trashbin\Trashbin::deleteAll();
|
||||||
|
foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) {
|
||||||
|
$this->trashManager->removeItem($trashItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(): string {
|
public function getName(): string {
|
||||||
|
|
Loading…
Reference in New Issue