Remove all files in /home/andy/.local/share/Trash/files

I am trying to delete every file and directory in the Trash directory.

I know I can just empty the trash, but this part of a cronjob.

I have this and it works on Most files, but not all.


rm -r /home/andy/.local/share/Trash/files/*
rm /home/andy/.local/share/Trash/files/.*

It does not remove the directory


Is there a command that will remove EVERYTHING?


Leave a Comment