Score:1

Deleted file keeps reappearing

ke flag

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?

24601 avatar
in flag
is the file shown in your Home/Desktop folder and can you not delete it from there? Please [edit] your question with your version of ubuntu
mike83 avatar
ke flag
I've tried deleting it from the Desktop, from the Home/Desktop folder and from the terminal but it has showed up again after restarting.
24601 avatar
in flag
[edit] your question with the commands given to delete the file from terminal. `rm -f [file-name]` or `sudo rm -f [file-name]` should work see [this reference](https://askubuntu.com/questions/755596/how-do-i-force-delete-a-file#755601)
cn flag
Ray
It's possible that it's not a problem with how you're deleting it, but some program is re-creating it. Perhaps you should check the date of the file? If it's new every time, then it's being re-created and it might be better to track down which program is doing it first.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.