Liuta,
Thanks for this quick reply !
This works fine for me as i am using Google drive account only to put my Xcloner backup in it…
This new version does the job well. I could check that trashcan is cleaned on verify connection.
Thanks for this update.
However, my use of Google Drive account is certainly not the use case of everyone.
So I think that cleaning only backup files would please a lot more of users.
I have checked Google drive library used in Xcloner Google Drive plugin and found out that GoogleDriveAdapter->delete() function is only updating setTrashed to true to delete file :
File: xcloner-google-drive\vendor\nao-pon\flysystem-google-drive\src\GoogleDriveAdapter.php
278: $file->setTrashed(true);
280: if ($this->service->files->update($id, $file, $opts)) {
Solution should be to add a new method (deleteNoTrash) using $this->service->files->delete() which delete file without trashing it.
This new method should be called only if option ‘Really delete backups (no trashing)’ is checked…
I hope that makes sens…
Anyway, thanks for this new version which avoid me to delete trashcans manually.
Kind regards
Laurent