Deleting is the act of removing a file.

learn more… | top users | synonyms

12
votes
1answer
1k views

Is it possible to delete files when another filesystem is mounted on the path?

Having just written an answer about moving /usr to a new partition I was wondering about deleting files once a new partition has been mounted. To use the example from the question, is it possible to ...
11
votes
5answers
2k views

Is it safe to delete every hidden folder in the home directory?

My $HOME (otherwise known as '~') directory has lots of hidden configuration folders. Is it safe to delete all of them? To be specific Will the OS break if I do so? Will my ...
10
votes
3answers
11k views

How do I delete all empty directories in a directory from the command line?

Say I have a directory named "foo". This folder is full of other directories. How can I delete all the empty directories in one command?
10
votes
5answers
55k views

How do I remove a folder?

I'm a new user and Im trying to remove a specific folder. I am using sudo rm /path/ but its not working. What is the correct command to use? It is a file catolog I am attempting to remove but im ...
10
votes
2answers
4k views

How to delete all the settings for Deja Dup

When I upgraded to 11.04 Deja Dup started behaving strangely, it would begin a new full backup everytime the computer was started because it was looking for a drive and folder which I had removed some ...
9
votes
3answers
13k views

How to recover Deleted Files and Folders?

How I can restore files and folders. I've deleted my home folder recursively. :(
8
votes
2answers
5k views

How do I delete a hard link?

Recently I created a link with the following: sudo ln -n originalFileLocation How do I delete a hard link?
8
votes
2answers
569 views

Intercepting calls to rm, and directing deleted files to trash instead

Is there a way to intercept calls to rm, and instead of permamently deleting the files, moving them to trash instead?
8
votes
2answers
433 views

How is rm command different from the delete button?

I read from a book where it says, the command rm deletes the inode and not the file. Which means if I delete with the rm command, then it cannot be restored. I'm very new to Ubuntu environment. Now ...
8
votes
7answers
10k views

Unable to delete file - no such file or directory

How can I delete a file that is there but the system says is not there?
7
votes
1answer
7k views

How do I remove all files that match a pattern?

When I revert in Mercurial, it leaves several .orig files. I would like to be able to run a command to remove all of them. I have found some sources that say to run: rm **/*.orig But that gives me ...
7
votes
5answers
12k views

How to recursively remove .svn metadata folders?

I have a Java project and it used a SVN repository, now I decide to change to GIT. However the problem is that SVN engine that I used created in every folder of the project the .svn metadata ...
7
votes
2answers
470 views

Is there a significant disadvantage to aliasing rm to do something else?

I've been bitten a few times recently with rming things I shouldn't have - for example, forgetting to ulink symlinks, not rm them. I'm thinking of writing a small bash script to simply move the ...
7
votes
2answers
261 views

Is there a way to recover a file that I have deleted but is still open somewhere?

This question is related to How to recover deleted files? but it is slightly different in nature. Suppose I have a file named ~/something open in a text editor. Further suppose that I open a terminal ...
7
votes
2answers
1k views

Disable shift-delete for file deletion

As an re-education procedure in order to reduce (likely) future data loss, I wish to disable the Shift+Del functionality to delete files in Ubuntu (11.10 and 12.04). Also, if I could replace it with a ...
6
votes
8answers
44k views

How do I remove my Ubuntu partition from Windows 7 and reuse the space?

I am dual-booting Windows 7 and Ubuntu, both installed on separate partitions. I don't need Ubuntu anymore. How can I remove the Ubuntu partition(s) and add the reclaimed space to my Windows 7 ...
6
votes
2answers
1k views

vim/gedit delete words between character

I have a huge file with the entries like the one below: <option value="201">Medical</option> <option value="203">Finance</option> <option value="205">Tax ...
6
votes
2answers
5k views

Ubuntu deleted files from guest account desktop

I have Ubuntu 12.10 and was using guest account. I downloaded some files on desktop and shutdown my m/c after use. Now today when I logged in to guest account to copy those files but surprisingly ...
6
votes
2answers
208 views

I can continue playing a video after I Shift-Delete it. Is the disk-space freed when I close player?

I've noticed that I can actually Shift-Delete (ie. doesn't go to Trash) a video which is currently playing, and it still keeps on playing, even though there is no named reference to it in nautilus or ...
6
votes
2answers
13k views

Is it safe to delete a lost+found folder?

I have an empty seperate partition used for my vhd/virtualbox. mounted at /mount/win7. I've deleted everything now and there's a lost+found folder left over. It takes up about 5gigs Is it safe to ...
6
votes
1answer
932 views

How to prevent a file under user folder to be deleted?

How can I make some file impossible to be deleted by user even if it is under his/her home folder?
6
votes
1answer
679 views

How can I remove the default application indicators, like the power or the volume indicator, in Unity?

After installing a bunch of new application indicators, I realized that I was using a lot of the top-bar space, and wanted to get rid of some default indicators to have more space. Is this somehow ...
6
votes
2answers
2k views

Is there a GUI program to securely delete files and folders? [duplicate]

I see there's a lot of info in the answers to this question. I have used such CLI commands added to the context menu of the file manager (mostly Thunar's custom actions, which I favour over Nautilus, ...
5
votes
1answer
940 views

Cannot delete file from /home by rm command

I cannot delete a file in my /home folder. Terminal output give me the message: ~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) bash: ошибка синтаксиса около неожиданной лексемы '(' Roughly ...
5
votes
3answers
1k views

Removing sources after building from them

Suppose, we've built some package from sources (configure make install). May we remove sources directory after successful building? Or it depends? On what, then?
5
votes
3answers
24k views

How to delete/edit files from readonly filesystem

I am having problem with my memory device (actually a memory card that act external memory device like pendrive). experimentx@workmateX:/var/www/zendtest$ sudo rm ...
5
votes
1answer
8k views

Where is the delete account button in Thunderbird on Ubuntu 12.04

I was unable to find the "Delete account" button in Thunderbird on Ubuntu 12.04. Saw posts saying that I can find it at the bottom left side, but could not find it. Please help me find that button.
5
votes
1answer
6k views

How to recover deleted folders or files (by shift+delete) from an NTFS partition

I have a 80 GB hdd in which Ubuntu is installed alongside windows. I also have a 500 GB hdd having 3 partitions in which i store my data. Actually i mistakenly deleted a folder permanently in one of ...
5
votes
4answers
3k views

Delete confirmation missing when I hit the delete key

I'm sick of accidentally deleting files and directories as DEL button is badly located on my keyboard. I would really like it if ubuntu asked me to confirm before deleting anything. Is there a way to ...
5
votes
1answer
630 views

Can you delete the Humanity icon theme safely?

I'm trying to reduce used space after running disk usage analyser, since I'm using a 40GB SSD. The icons use quite a bit of space! Could I delete those that I don't use, such as humanity? (I use ...
4
votes
2answers
4k views

How to delete specific files from terminal

Recently, I converted my music files to a different format. I have for example a folder of an artist containing the different albums in separate folders. I would knowing if is there a way to delete ...
4
votes
1answer
217 views

Accidentally created a file called “--help”. How to remove it?

I accidentally redirected the output of a command to --help rather than passing it as a parameter. How do I escape the dashes to I can remove the file? This is on a headless server, so I'll need to do ...
4
votes
1answer
4k views

Can I safely remove all the files in /tmp?

I want to make free space on my computer, and Baobab tells me /tmp is 8 Gio large. Can I delete all the files in /tmp safely? Do I have to close some programs first? Additionally, why is this ...
4
votes
2answers
52 views

How do I actually delete files?

I have an SD card that is full. Despite deleting files on it it is still full. I only have this problem in Ubuntu. What is going on?
4
votes
1answer
596 views

How to delete Gwibber history?

How do I delete Gwibber history in 11.10? I deleted the account and created the account again, but some of the tweets deleted on the web still appear on Gwibber.
4
votes
1answer
2k views

How to use Secure Erase and is it on the install CD?

Supposedly there is some built in hard drive magic called "Secure Erase" which is wildly faster and more secure than "dd if=/dev/zero..." I am most excited about the speed increase. There seems to ...
4
votes
2answers
778 views

Is there any log kept of the files I delete?

I deleted a folder today while I was thinking I had clicked on another one. Is there any log that I can search to find the name of the folder I just deleted? The files deleted were probably not ...
4
votes
1answer
133 views

Ubuntu One Triplicated my contacts — how can I delete all contacts so I can start over?

I need to delete all contacts in Ubuntu One. Doing this one at a time is excruciating and horrible. How can I just get rid of all contacts?
4
votes
1answer
775 views

How can I automatically have old e-mails deleted in Evolution?

There is a nice feature in Thunderbird which lets you have your old e-mails, say those that are older than 30 days, deleted automatically. This feature (or some workaround) would be nice to have in ...
4
votes
2answers
99 views

How to prevent users from deleting files that are already in use?

Consider this scenario: User is executing a command on a file. This file becomes 'in-use' now. $ tail -f somefile.log In another shell, user deletes the file. $ rm somefile.log Now, this file ...
4
votes
1answer
266 views

File are being deleted after renaming [closed]

Renamed files dissapears from Ubuntu One Folder. I had to move files from U O to some temp location, rename them and upload them back. Is there a special procedure for files renaming?
3
votes
4answers
8k views

How do I remove windows after installing Ubuntu 12.04 via WUBI

I'm about to install Ubuntu by using Wubi. Can I then delete Windows and keep Ubuntu?
3
votes
2answers
746 views

How do I make space in /boot/?

I have /boot/ on a separate partition from /, and /boot/ is 98% full. How do I make more space on it?
3
votes
3answers
2k views

Shred alternatives EXT3?

Given the fact shred will not be effective on ext3, I wonder what are the available alternatives right now. $ man shred ... CAUTION: Note that shred relies on a very important assumption: that ...
3
votes
1answer
3k views

How do you delete files in the location: /usr/local/src?

I tried to move a file into the rubbish bin (because I followed some instructions about installing sage and it involved moving a file to that directory) and it gave me errors saying that I didn't have ...
3
votes
2answers
1k views

How to delete all source codes and packages I have downloaded

I've got a question regarding how to delete all source codes that I've downloaded. I think it just consumes a lot of space without any benefit yet! Thanks in advance :)
3
votes
2answers
691 views

Safely remove folders that only Windows uses

I've been using an external hard drive in Windows, but now that I decided to switch to Ubuntu, I wonder if I can safely remove the folders $RECYCLE.bin, RECYCLER, $AVG and found.000
3
votes
1answer
707 views

How do I batch delete a specific file inside multiple rar archives?

I have about 1000 rar files, that randomly contains an EXE file named:"JPG-Crack.exe". I need to delete it from all archives without harming the other archive content. thanks
3
votes
1answer
58 views

On which partition is Ubuntu located?

I'm trying to delete the Ubuntu partition and then later I'm planning on running Ubuntu through VitualBox on Windows 7. The problem is I don't know which partition is Ubuntu so I can use that space ...
3
votes
1answer
3k views

Why can't I purge apache2.2-bin and apache2.2-common?

I have tried to completely remove apache2.2 from my system. But the only thing that happens is that apt-get will remove "apache2-mpm-prefork" and install "apache2-mpm-worker". I have killed all ...