Questions tagged [delete]

Deleting usually means the act of removing files from their former locations on the system.

Filter by
Sorted by
Tagged with
1 vote
1 answer
250 views

How can I free up space from an older Ubuntu partition

Straight to the point, I have created partitions to install Ubuntu GNOME and its swap, and they in total make up 18 gigabytes. How can I uninstall/delete/remove the OS and still keep the space? And ...
Klaus's user avatar
  • 33
0 votes
2 answers
3k views

How to completely delete a file, so that data recovery softwares can't recover it? [duplicate]

Deleted files can be recovered using recovery programs, is there any way to completely remove the files?
Md Tahsin Rahman's user avatar
1 vote
2 answers
773 views

I am not able to delete my folder from Trash

I am not able to delete a folder from my trash. It shows: I have followed the following: Why can't I delete a folder in my trash? But, it did not help. My deleted folder shows up in 'Trash' ...
Wings's user avatar
  • 117
1 vote
1 answer
82 views

How temporary/backup files are removed

How long do backup files(files ending with ~) created in Ubuntu by text editors live? Do they persist until they are deleted manually, or are they automatically deleted by the operating system at ...
darthvader's user avatar
0 votes
1 answer
495 views

Cannot empty rubbish bin

I cannot empty the rubbish in 14.04 ubuntu. The files are from an external hdd - and I cannot remove them even if the drive is mounted.
PeetasCakes's user avatar
0 votes
2 answers
3k views

Force deleting partition and create an unallocated one

I'd like to force deleting a partition even if it is dangerous for the OS and recreate a smaller allocated partition. I install Ubuntu this morning, so it is not really important. Could anyone ...
user avatar
0 votes
2 answers
6k views

Why can't I remove the directory?

debian8@hwy:~$ ls -al /var/www/html/wp/.git total 8 drwxr-xr-x 2 debian8 debian8 4096 Jan 2 14:07 . drwxr-xr-x 6 www-data www-data 4096 Jan 2 06:43 .. /var/www/html/wp/.git belong to debian8, ...
showkey's user avatar
  • 342
0 votes
0 answers
325 views

Trash isn't showing deleted files from my other partitions

I'm using Ubuntu GNOME 16.10 and I'm having a problem: deleting a file from another partition doesn't show up in Trash like it used to be. Trash only show files deleted from the partition that the ...
Cosmo's user avatar
  • 51
7 votes
1 answer
3k views

Add "delete confirmation prompt" in Thunar

Thunar does not have the option of a prompt asking for confirmation when moving files to trash (this is, when pressing the Delete key). I want to add one. The only way I can think of doing this by ...
user avatar
1 vote
0 answers
612 views

How to disable or delete Ubuntu Desktop geoip-database?

So, I found out why geoip-database is used in Ubuntu, but it seems it is intrustive. So, can you disable it or delete it? If so, will that interferer with Ubuntu performance?
ThN's user avatar
  • 223
1 vote
1 answer
602 views

Strange file that I can't delete/move/rename

The name of this file is: Soldier Project. blend@ I can't delete it, move it, or even rename the thing. I was using Blend to make a rig for a soldier, hence the name, when I rage quited out of ...
J. Sabere's user avatar
  • 181
30 votes
3 answers
25k views

What is the command to remove all files but not directories?

Let's say I have a directory tree like this: FOLDER: file1 file2 file3 Subfolder1: file1 file2 Subfolder2: file1 file2 If I used rm -r FOLDER/*, ...
PKM's user avatar
  • 819
1 vote
1 answer
1k views

How to REALLY, completely and totally delete a program and all its files [duplicate]

My virt-manager recently started refusing to open a VM that had worked perfectly before. I couldn’t find the reason or the solution to that, so I thought I would really, completely and totally ...
Pabzum's user avatar
  • 69
0 votes
1 answer
819 views

How to install windows 10 from flash drive, and overwrite CRASHED version of linux? [duplicate]

I have a compaq presario CQ60 With a CRASHED version of Ubuntu Linux, I am not knowledgeable on how to use linux to begin with, let alone fix a computer that keeps repeating " [sdb] asking for cache ...
Devon Glover's user avatar
0 votes
0 answers
191 views

How to delete Apache2 server

How I can delete apache2 server fully? I have installed apache2, and removed all files with purge, autoremove, and rm -rf 'whereis apache2' 'which apache2'. And when I connect to localhost through ...
Vlad9pa's user avatar
8 votes
2 answers
818 views

How to delete folder with strange name? [duplicate]

I don't know how I've done this but I've created somehow a folder named "-p". Now I'm trying to delete it but my buntu is thinking I'm passing -p as a paremeter. What can I do? Ubuntu Server 15.
Magno C's user avatar
  • 202
0 votes
2 answers
3k views

Error While Deleting - File Doesn't Exist

Somehow I managed to create a file on my NAS drive which contains a forward slash in the file name (i.e. '/'). I think this has caused a problem. Now trying to delete this file gives me an "Error ...
Concrete_Buddha's user avatar
2 votes
1 answer
2k views

Unable to delete several files

I have an external USB drive mounted to my 14.0.4 server (which lacks any GUI that I'm aware of). The contents of this drive were created while it was attached to a windows desktop. That computer has ...
disord3r's user avatar
2 votes
2 answers
3k views

Trash extremely slow ubuntu 16.04 when used for big files

I am re writing the question to avoid confusion... On Ubuntu 16.04 I had to delete about 6500 files. 50% were RAW images and 50% were associated .XML files. Totalling 72GB. I am using Samsung Evo SSD ...
BB1's user avatar
  • 61
0 votes
1 answer
223 views

to delete a file in ubuntu [duplicate]

I wanted to recover some files but while recovering them I made a folder that used up all of my disk space and space free is 0 bytes. How can I delete it as it is not allowing me to delete it?
Jeevank Juneja's user avatar
1 vote
1 answer
75 views

keep only files with the same basename

How can I only keep the .txt files in both imgur/images/vase as well as imgur/comments/vase that pertain to the .jpeg files in image folder of vase? mona@pascal:~/computer_vision/imgur/images$ ls ...
Mona Jalal's user avatar
  • 4,535
3 votes
2 answers
199 views

How do I use basic linux commands to delete all files except one?

I want to delete all the files within a directory that start with abc except for abc itself. example: abc abc1 abc2 How would I delete abc1 and abc2 only in a single command line?
Noremac's user avatar
  • 31
0 votes
1 answer
441 views

Auto delete of file which is the same name

I'm new to ubuntu. I need some help to auto delete some files inside my home folder. I run a cron for some SQL backup which create a file into my home folder. It create thousands of them in a day. ...
Desmond's user avatar
3 votes
2 answers
16k views

Delete files older than 5 days as well as in all subfolders

I need to delete all files older than 5 days in all subfolders, but not the folders themselves. I know the command: find /path/to/files* -mtime +5 -exec rm {} \; But how can I tell Ubuntu to check ...
warhansen's user avatar
  • 222
1 vote
1 answer
72 views

Removal of multiple sub-folders in Ubuntu server doesn't work using curly brackets

I have a ubuntu(don't know the version) server, in which I am trying to clear the following 4 sub-folders. magento-root/var/cache magento-root/var/session magento-root/var/log magento-root/var/report ...
Vicky Dev's user avatar
  • 433
1 vote
1 answer
499 views

How to delete a specific number of files inside a folder with fish shell?

~/Desktop$ ls file 01 file 02 file 03 file 04 file 05 file 06 file 07 file 08 file 09 file 10 file 101 file 102 well the list goes on like that till file 109 after which it shows file 10 then ...
devilz's user avatar
  • 169
4 votes
1 answer
189 views

Find a file and delete some lines within it

How can I find a specific file and then delete some lines from it using terminal in a single line? e.g. I want to find file.txt in my some specific directory and then I want to delete lines from 5 to ...
Avani badheka's user avatar
0 votes
0 answers
699 views

Recover deleted directory from /dev/vda1

Accidentally deleted the directory image. It's path is /var/www/html/project/images. Installed the testdisk while executing the analyze. It says that no disk found. So executed the command ls /dev/....
gvgvgvijayan's user avatar
1 vote
1 answer
3k views

"Move to trash" not working

I just installed Ubuntu 16.04 LTS on my notebook (ASUS ZenBook UX303U). Whenever I try to "Move to Trash" a file it appears a window asking «“MyFile” can't be put in the trash. Do you want to delete ...
Robb1's user avatar
  • 205
1 vote
1 answer
4k views

rm -rf and rmdir both giving error cannot remove, directory not empty

I am using Ubuntu 14.04 I am user jason. I tried the commands below with sudo but it didn't work. here are the commands given. jason@TRZG001:~/plex/trans$ rm -rf Movies/* rm: cannot remove ‘...
user1548114's user avatar
0 votes
1 answer
3k views

Locate and remove unused files [duplicate]

My hardrive is full! How do I locate and remove trash files? I can't even upgrade my ubuntu. I am a newbie with Ubuntu.
M. Connors's user avatar
13 votes
2 answers
2k views

Are there any disadvantages of using rm $(ls) to delete files?

I was wondering if using rm $(ls) to delete files(or rm -r $(ls) to delete directories as well) was safe? Because in all the websites, people give other ways to do this even though this command seems ...
posixKing's user avatar
  • 1,133
1 vote
2 answers
112 views

How to freeup space in external hardrive

I have installed Ubuntu 16.04 LTS, Linux Mint 18 and Elementary OS all on external hard drive (all OSs are installed on different partitions). I was using Linux Mint to recover some data from SD card ...
Saad AwaN's user avatar
0 votes
1 answer
430 views

Problem with upgrading system

im using ubuntu 14.04 and last time i have problems of upgrading the system. i was searching for a solution and found this one: sudo apt-get -y purge i was using it and in the end it says that i ...
user494556's user avatar
1 vote
1 answer
7k views

How do I delete the Windows hibernate file on a read only device?

I'm locked out of Windows and the only way to fix it is to boot up ubuntu USB stick and delete hiberfil.sys. I managed to open the volume in a read-only mode with this command: sudo mount -t ntfs-3g -...
QuestionMan's user avatar
4 votes
2 answers
91k views

How to remove directory with all of its contents?

I tried to remove a directory by using command rmdir but I got this answer: The directory is not empty. How to deal with such problems?
user3076763's user avatar
7 votes
2 answers
856 views

How to delete folders that have n or fewer files in them?

I need to do some folder clean-up, and I'd like to remove directories that have 10 or fewer files in them. I tried looking at GNU's find, but there wasn't anything related to the number of files in a ...
user avatar
2 votes
1 answer
51 views

How do I know which programs use a particular file?

I found a file called kernel-4.2.5 in my Home directory and I want to delete it but I don't know what harm that could cause. Is there a way of knowing if that file is being used because my kernel ...
Mr. T's user avatar
  • 153
3 votes
3 answers
15k views

How to delete a file from another directory in Ubuntu terminal

I'm starting learning Linux Ubuntu commands, now I want to learn how to delete a file from another directory while I'm in a different directory. For example, now I'm in Documents and want to delete a ...
R1S8K's user avatar
  • 133
4 votes
2 answers
3k views

How to delete all first-level subfolders that do not have a specified string in their names

I know that there are quite a lot of answered questions about how to delete all files with or without a certain string in their names, as well as ones about how to delete all subfolders with a certain ...
PyGeek03's user avatar
  • 168
0 votes
2 answers
2k views

How do I delete files using the Gutmann Process?

I've been trying to delete some files, large ones in particular, to help smoothen out my system, Is there any command or programm that deletes files via the Gutmann Process?
Ґрадон Хатчінсон's user avatar
2 votes
0 answers
60 views

Tar Archive Update And Delete Parameters

I use -uvf parameters to tar my home folder, but it accumulates files and I soon run out of disk space. What combination of parameters rewrites only changed files and removes deleted?
Zon's user avatar
  • 214
1 vote
1 answer
2k views

Can I delete the mwf_config file?

I found this file in ~/Documents (not hidden), I opened the file in Pluma but found that it is blank so am I safe to delete it?
Phil's user avatar
  • 536
1 vote
1 answer
30 views

App has been deleting for ever

I tried to install Steam, but it failed. The thing is, I tried to delete it from the app center (not sure what it is called in English), but it has been stuck at the 'Deleting...' point for last 20 ...
vilzu2's user avatar
  • 11
4 votes
1 answer
9k views

Delete all hidden files recursively in current directory [duplicate]

I have a directory which contains hidden files and by that I mean, not just the files whose name starts with . but also the files whose name contains ~ character at the end like somefile.txt~. I want ...
Vicky Dev's user avatar
  • 433
1 vote
1 answer
54 views

/boot/map~ OK to delete when /boot/map does not exist?

I know that files that end with a tilde(~) are OK to delete because they are backups. However, I found /boot/map~, when /boot/map does not exist. Can I delete this? It is 117761 bytes (118 kilobytes), ...
jadenPete's user avatar
  • 285
24 votes
2 answers
135k views

Auto delete files older than 7 days

I am a complete noob at linux but I am starting to get the hang of it. I have an Ubuntu Server 16.04 running an FTP server to backup security video files. The files will be stored in folders like: /...
Jacco's user avatar
  • 341
1 vote
1 answer
3k views

How to delete all .class and .csv.gz files in the folder and all the subdirectories in SVN [duplicate]

I'm trying to delete all .class and .csv.gz files from my svn directory and all subdirectories. Can anyone tell me how to do it automatically with a command ? I have RabbitSVN installed on my Ubuntu. ...
Moksud Ahmed's user avatar
2 votes
2 answers
4k views

How to delete all files in current directory but keep files in subfolders

I have a structure like this file_1 file_2 ... file_n folder1/ sub_file_1 sub_file_2 I only want to delete file_1, file_2 and file_n but keep all folders and files in them.
lukaszett's user avatar
2 votes
0 answers
59 views

Force all deletes to be secure

I have setup an Ubuntu Server for my university project. Aside from full disk encryption I also intend to use Dafturn Ofris (a Linux deepfreeze) to make file recovery difficult or for any forensics ...
k1308517's user avatar
  • 121

1
5 6
7
8 9
15