On Ubuntu 20.04 I have a file on my desktop which I want to delete but every time I do so, it reappears on the next restart. It's a calendar file (.ics). I can't remember exactly how I put it on my desktop in the first place. I may have moved it there from a samba share or exported it from Thunderbird or Google calendar. I tried removing it both by clicking on it and hitting Delete and by typing the following in the terminal:
sudo rm [filename]
How can I delete it permanently?
rm -f [file-name]
orsudo rm -f [file-name]
should work see this reference – graham Sep 11 '21 at 13:39