First make sure that the find command returns the files you want to delete.
Make sure that the trash works on the partition:
create a file
Code:
> /media/MyBook/test-trash
move it to the trash:
Code:
trash /media/MyBook/test-trash
list the trash:
if the file is in the trash move the unneeded files to the trash:
Code:
find /media/MyBook/ -type f -name *filename* -exec trash '{}' \;
to empty the trash:
to restore the files:
NOTE: you may have to install trash-cli:
Code:
sudo apt-get install trash-cli
Bookmarks