This question already has an answer here:
I'm running MacOS Mojave.
For months, I have the following file in my bin which I'm unable to remove:
~/.Trash/Recovered files #1/(A Document Being Saved By Quick Look Helper)/thumbnails.fraghandler
Stuff I've tried:
sudo rm -rf ~/.Trash/Recovered\ files\ \#1/(operation not permitted)
chflags uchg thumbnails.fraghandler(operation not permitted)
chmod the directory (operation not permitted)
I can move the file to another folder (e.g. Desktop), but unable to remove it from there as well.