- Download the file
clearTrashFromPendrive.sh
- Connect Pendrive to your mac
- Make sure pendrive is working
- Run
sh clearTrashFromPendrive.sh "PENDRIVE_NAME"
command in Terminal from the directory where you have downloaded the file. - That's it You're Done.