Since joining this community my coding skill has improved quite a lot. When I first started I made this tutorial here, which is functional, but not ideal. I decided to update it to be a bit more useful for people here using Python 3. Hope it helps you all.
Just came here to add that you can run this using the qiime2 conda environment (tested using 2019.4 conda environment) you just need to install the python package 'send2trash' using:
Even though this thread is old, I'd like to share a newly created solution of my own. since being faced with the same problem and wanting something general and flexible: