Questions tagged [delete]

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

Filter by
Sorted by
Tagged with
4 votes
0 answers
996 views

Can't delete file or folders with "delete key" when on Ubuntu 20.04 desktop interface

I have a problem that "delete key" on keyboard doesn't work when on Ubuntu 20.04 desktop interface. I can use "delete key" when on desktop interface of Ubuntu 19.10 and it works well, but on Ubuntu 20....
0 votes
1 answer
262 views

What happens with /media if you run "rm -rf /"?

rm -rf / rm -rf /* rm -rf --no-preserve-root / We know those commands will delete all possible files in /, but what would happen to the files of the disks mounted on /media? Likewise, what would ...
1 vote
0 answers
181 views

Delete users on Ubuntu Core

I created a user on my Ubuntu Core distribution with ssh key and without password. But a few days later, Ubuntu ask me a password to connect (even if I didn't specify a password before). So to ...
0 votes
1 answer
95 views

deleting ubuntu from internal ssd with no other operating system

I have had my ssd repalced in my macbookpro 2007. So it was blank....i made a bootable external disk with ubuntu on it and booted mac up on it, and installed it on the hard drive. i want to delete and ...
6 votes
3 answers
12k views

Why can't I delete a folder in my trash?

So I downloaded a "cracked" version of Minecraft. STUPID, I know and understand the dangers. Anyway, the download put a folder called "minecraft" on my computer. it contained a .png and a .jar file. ...
-1 votes
1 answer
415 views

I lost my Gnome-Terminal

I use the app alacarte to delete my duplicate apps, but I make a mistake and I delete my gnome-terminal, I mean I can acces it, but I can't see it in my main menu? Can someone help me with that?
1 vote
0 answers
172 views

Hang up when want to delete some files in ubuntu 20.04

I upgraded to 20.04 from 18.04, but now i have got problem with deleting the files from nautilus. i don`t know why ?! when i was to deleting about 1200 files at same times gnome-shell consume my ram ...
1 vote
2 answers
7k views

Can't delete file and folder from my desktop

Hello i'm new ubuntu user so here my problem, i can't delete file and folder from my desktop there is no option for that."Move to trash" is not optional on list when i press right click.
0 votes
1 answer
742 views

How to delete any file with Terminal Ubuntu LTS 18.4.4 [closed]

I have tried to delete all files of "htdocs" of xampp local server. But did not complete this action. please help me to complete this delete action.
0 votes
1 answer
104 views

Manage file deletion in PHP

I am creating a PHP website where you upload 2 images, and it combines them, then lets you download the final product. Currently I have it set up to create a UserID that is stored in cookies. Then all ...
-1 votes
1 answer
611 views

How to delete a folder with weird files inside?

I was cleaning up some disk space on my windows pc when I noticed this old folder that I had from back when this PC also ran linux. I tried deleting the folder through windows but some of the files ...
1 vote
1 answer
2k views

Duplicate Apps installed (Slack)

I have started to use Linux a few months back so I'm a novice user. Recently I came accross this issue where I have managed to install two duplicate apps, one through the official app website and the ...
0 votes
1 answer
272 views

how to retrieve profile in ubuntu 18.04 [duplicate]

I accidentally deleted the .profile in my Ubuntu 18.04 today. How to retrieve this. regards,
0 votes
4 answers
3k views

Multiple boot windows 8 and ubuntu how to remove?

I have a windows 8 and ubuntu 12 installed in my laptop but recently i formatted my laptop and re install windows and because i want a clean installation of my OS i erased and formatted the drive C ...
0 votes
1 answer
250 views

Using Terminal to remove wildcards

I'm a bit new to this, I've used IRAF before but that was a couple years ago. My question is how would I go about removing certain files. Sample of files goes as is: 0001Reduce_Proc.fits 0001Reduce....
1 vote
0 answers
77 views

Why even just "delete" asks if the files to be permanently deleted or not?

It's a very strange bug, so please read the whole question once before judging it as a duplicate, I couldn't find a question that asks the same thing! I have Ubuntu 18.04 on Dell Inspiron 14 5000 2-...
0 votes
0 answers
138 views

Unable to delete a folder in Ubuntu 18.04

So I have an Ubuntu server 18.04 and in my home folder I have the following files and dirs : (0) matias #> ls -lh total 24K drwxrwxr-x 2 matias matias 4.0K Feb 5 12:44 Desktop drwxrwxr-x 3 ...
7 votes
2 answers
2k views

Can't move files to trash without any permission issues

This is not like one of the cases addressed before - I've checked them all. I've suddenly begun getting that message "... can't be put in the trash. Do you want to delete it immediately?" this ...
0 votes
2 answers
278 views

How can I automatically move trash from a disk to another?

I have two disks, disk 1 and disk 2 disk 1 is a bulk storage disk mounted at /home disk 2 is smaller, mounted as a subfolder of /home (/home/Username/blah) and gets more activities Currently, When ...
3 votes
2 answers
138 views

How do I make Secure Delete visible in terminal?

my command is srm -r "the title of the directory" it does 38 passes which is insanely too much and recently I noticed I can't see the process of the deletion using ubuntu in the terminal! it is blank ...
8 votes
1 answer
5k views

Uninstalled Firefox still here

I purged firefox(*) and deleted /etc/firefox and /usr/lib/firefox, the whole .cache thing and so on as already mentioned in Removing Firefox in Ubuntu with all add-ons like it never existed After all,...
0 votes
1 answer
71 views

Find and remove common characters that should not be used in filenames and folders

Following on from this question- Rename files and folders in all sub directorys to remove character I would like to remove all common characters that can cause problems such as / \ : * ? " < > | ...
3 votes
1 answer
3k views

Delete user files on logout

I have to setup Linux Ubuntu PC, on which when user logout himself, all files on his account have to be deleted, so when next time he logs in, he will have environment like he is never been logged ...
8 votes
2 answers
4k views

Delete All .log files execept for one

I want to delete all files with .log extension on except for one. Is it possible to do that delete all .log files from all folders except for mongodb log files?
1 vote
2 answers
59 views

How to delete a file from an external disk without moving the file from the external disk to the local disk?

As you know there are multiple ways of recovering the files even after it was deleted. I have a USB 8GB pen, it contains many files, one of them I would like to delete it. if I clicked on move to the ...
2 votes
4 answers
1k views

Can't delete ~750G error log produced after changing permission for /usr/bin/ (sudo not permitted)

Issue: After several hours investigating the reason that ate my disk space and brought it to zero, I figured that it was due to changing the permission in the root directory (I can't recall the exact ...
1 vote
2 answers
532 views

SFill vs DD on linux (Comparing write speeds)

If I want to write zero's to empty space on a mountpoint using one pass is there any reason to use Sfill over dd? With sfill -l -l -z -v /mnt I'm getting about 13mb/s write. With dd if=/dev/zero | ...
6 votes
0 answers
1k views

Why did an rm command executed from a pwd NOT / remove directories from it?

OK, so I've been doing different levels of sysadmin for almost a decade and yet I fell victim to an age old mistake; though I do not understand why it happened. I was in my server sorting through ...
0 votes
1 answer
4k views

Recovering SHIFT-DELETEd files?

I just shift-deleted some important pdf-files from my dual-boot system. The files were originally on Windows drive, but I deleted them from Ubuntu. I just used Foremost to recover, but it returns ...
0 votes
1 answer
281 views

Does Purge Trash and Temporary Files, in Settings/Privacy, leave the trash and temp files on my hard drive or are they destroyed?

I'm wondering if Purge Trash and Temporary Files, found in Settings/Privacy, is a secure method for managing unwanted files, or I need to stay with a file shredder like Bleach Bit. Thanks for any ...
1 vote
0 answers
34 views

Files from mounted volume cannot be send to trash, only deleted permanently [duplicate]

I use Ubuntu 18.04.3 on the laptop with two logical volumes. When I select some file on the home volume and press "Del", it goes to Trash. On the mounted volume when I press "Del" it is removed ...
2 votes
2 answers
4k views

BTRFS cannot delete snapshot - operation not permited

I cannot delete a the btrfs subvolume "2014-07-28" which is a snapshot of the "@" created by the kubuntu installer to serve as the kubuntu root. teneighty@teneighty-MS-7924:/$ sudo mount -o subvolid=...
1 vote
1 answer
80 views

Ubuntu 18.04 Copy contents of multiple directories to external server

I searched for a while and I couldn't find solution to what I want to do in Ubuntu. I have multiple directories that I want to transfer its content to external storage server and then delete them from ...
0 votes
0 answers
450 views

I accidentally deleted root using sudo rm * [duplicate]

I accidentally used sudo rm * while I was in the root directory. Now, I am not able to open terminal and my computer does not shut down, only a single _ is flicking on the black screen. How can I ...
0 votes
1 answer
6k views

What is the file named linux_signing_key.pub in the home folder and can I delete it?

I found a file linux_signing_key.pub in my home folder. What is it for? Can I safely delete it?
0 votes
1 answer
73 views

Does ubuntu 18.04 delete files without my consent? [closed]

I installed Ubuntu 18.04 for development but it's giving me countless frustrations. First I had to reinstall postgres because, for whatever reason, I logged in and it wasn't working. Today I log in ...
1 vote
1 answer
6k views

Ubuntu 18.04.3 LTS - can 't empty trash, rm'd from Terminal - Trash folder gone but Trashcan still full!

First time using a Linux dual boot Windows computer. I can't empty my trash (very full with VERY big files - I work in a bio lab). When I try to do it through the GUI it says "Preparing" and then just ...
0 votes
0 answers
384 views

Grsync - Delete on Destination

I am running Grsync on Ubuntu 16.04. I have never had trouble before but now notice that the destination is much larger than than the source and the problem appears to be that files deleted on source ...
-1 votes
2 answers
583 views

Is it possible to have multiple trash cans for separate partitions in the unity launcher?

I have a separate drive mounted at /srv. If I create a /srv/.Trash folder files on that drive are successfully moved to a /srv/.Trash/1000 upon move to trash. If I don't have a /srv/.Trash folder I ...
0 votes
0 answers
125 views

An anonymous "free space" is showing in the disks window

I want to have only 2 partitions: the 238GB as shown in the picture, and the 262GB, But there is an anonymous "Free space 2.1MB" is coming from somewhere I don't know. I don't know how to merge it ...
6 votes
1 answer
926 views

'rm' (delete) thousands of files selectively

I created a cache system in my web server which stores the HTML files of each webpage, instead of dynamic producing them. As a consequence, I have 50,000+ files within a directory in a Linux server. ...
1 vote
1 answer
209 views

How do I clean up desktop containing shortcuts of Home directory?

There are several sub-folders from Home directory which appear as shortcuts on the Desktop. If I remove them "Move to Trash" then they also remove from Home directory. How to remove shortcuts only ...
6 votes
3 answers
5k views

How do I delete one of two Ubuntus on my PC

I've installed Ubuntu 13.04 two times on my PC. Each on a different partition. I would like to delete the one which I'm not using. How would I do that?
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/*, ...
3 votes
1 answer
472 views

Restore big folder from trash with no space on HDD

I have accidentally deleted a big folder from my computer. I have a backup of this folder in an external hard drive but it is going to be super slow to transfer it back to my computer. I can't ...
0 votes
1 answer
62 views

Ubuntu deletes text file on pressing Enter key in filemanagers

Recently I have a strange behavior with .txt and .srt extensions in my filesystem. When I hit Enter when file selected with intent to open the file, in both Nemo or Nautilus filemanager, file gets ...
0 votes
1 answer
2k views

Access denied when attempting to delete root files from trash bin

I'm running 18.04 on a formerly MS 64 bit system. I have Nautilus installed. I tried to empty the trash bin from Nautilus (sudo nautilus to get to root level), it failed. Access denied. I tried ...
0 votes
2 answers
32 views

when deleting multiple files or folders what do you recommend to be safe? [duplicate]

When it comes to removing files. Instead of rm some_file.txt or rm -rf some_folder we do del some_file.txt or del some_folder where you can define your bash alias for del in ~/.custom_aliases ...
0 votes
2 answers
329 views

Can't delete (rm -rf) a folder whose name is trailing with a space

I know this is a questions that comes up quite often, but, even if I googled a lot, I haven't found any solution. What I would do is $ rm -r 0624\ -\ 5\ Days\ of\ War\ / (tab completion already out ...
73 votes
5 answers
91k views

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

Say I have a directory named foo/. This folder includes subdirectories. How can I delete all the empty directories in one command?

1
3 4
5
6 7
15