Can't remove files from Trash
OK I have a new iMac, and I deleted some files from my iCloud Drive, but now I can't remove them from my trash folder.
I've tried everything I can possibly thing of... I've tried an "immediate delete", emptying the Trash in safe mode, I've changed permissions and removed the lock flag in terminal and tried to do an "rm -rf /folder", I've tried the terminal in recovery mode.
It says permission denied in the terminal, but when I try to empty the trash within the UI it tells me the files are in use. I have no idea what by, though... I've tried an lsof search on some of the files and it comes back with no response, suggesting that nothing is holding the files open. I've also tried shutting down every application I can think of.
My only thought is that because I deleted the files from my iCloud Drive it's somehow retaining an active link back to the original location, but again... safe mode didn't help.
It's driving me out of my mind, so any new suggestions greatly appreciated.
iMac 24″, macOS 15.3