As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [delete]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

How to remove grub bootloader on a locked down laptop?

Ok so I installed ubuntu on a usb stick but it also put grub on my school laptop, I cant open diskmgt on windows, how can I delete the bootloader using linux? The only thing I can think of is taking ...
Finky Famboni's user avatar
0 votes
0 answers
16 views

trash-cli on different BTRFS subvolume

I have a @home BTRFS subvolume which mounts /home/MYUSER, and a @ subvolume which mounts /. I keep my data on /mnt/dataint/data/SOMETHING. I can't trash from /mnt/dataint/data/SOMETHING. The two ...
robertspierre's user avatar
0 votes
0 answers
26 views

How to eliminate "ghost" folders and files?

I have folders and files on the external HD (ntfs) that do not want to be eliminated. From Shell I can't view them actually but in Dolphin they are present. They are annoying because they are there in ...
canerandagio's user avatar
0 votes
1 answer
90 views

How to delete matched filenames from a list

I want to scan for filenames in a source directory and all its sub-directoris then print the output to a file like: ls -hR >> del.txt (I, however, don't know how to not list folders) I don't ...
lee genny's user avatar
0 votes
0 answers
24 views

How to remap the Mac power key into forward delete?

I have got a Macbook and would like to remap the power key to work as a forward delete like on a common keyboard. Best solution would be that the power key still function as such when long pressing it....
Larry Golade's user avatar
  • 1,081
0 votes
0 answers
28 views

Python files removed from Jetson [duplicate]

I'm new in Linux, so I tried to remove the python3.6 package in order to install python3.8. However, doing this removed important files. Now when I try to install something or remove, upgrade etc., I ...
Hrathen23's user avatar
-1 votes
1 answer
54 views

How to fix when files keep disappearing without reason

How to fix when files keep disappearing without reason? Or maybe because I accessed it? I'm on Ubuntu 22.04 money@money:~$ ls move* move2.sh movenew.sh movestart3.sh money@money:~$ cat move2.sh cat: ...
God of Money's user avatar
0 votes
0 answers
43 views

Can't delete repository

I can neither untick the repository in the picture nor remove it. I tried for at least an hour and it does not get unticked/removed. I have to untick/remove it since I cannot update the system because ...
zero2001's user avatar
0 votes
1 answer
40 views

Deleted Ubuntu folder and emptied the trash [duplicate]

Well, that was stupid. I put in an old USB and wanted to delete all the files on it. I believed it was an old Ubuntu install USB, so without further thought I clicked on something that said Ubuntu on ...
Micke's user avatar
  • 1
0 votes
0 answers
33 views

Exited from the main page of Ubuntu [duplicate]

I tried to delete python with sudo apt purge -y python 3-minimal and this happened.
amoamiram's user avatar
1 vote
1 answer
118 views

How to delete files with specific size?

Using ls -lSrh I get this output: -rw-rw-r-- 1 a a 2.4K Feb 15 04:44 10010.png -rw-rw-r-- 1 a a 2.4K Feb 15 04:43 1000.png -rw-rw-r-- 1 a a 2.4K Feb 15 04:44 10009.png -rw-rw-r-- 1 a a 2.4K Feb 15 04:...
αԋɱҽԃ αмєяιcαη's user avatar
0 votes
0 answers
70 views

Dolphin 'Delete' option greyed out for folder

Running Ubuntu Studio 22.04.1 and the dolphin file browser won't let me delete a folder from one of my HDDs. It's a "RECYCLE BIN" folder from having used it on windows, currently sitting at ~...
TriumphantToil's user avatar
-2 votes
1 answer
225 views

how to delete librewolf and epiphany/gnome web from the terminal

i'm in ubuntu 22.04 LTS when i thought i found the perfect browser,librewolf i copied all the code from the debian install lines you should put in the terminal and executed it,it worked but i found ...
Prezire Playz's user avatar
14 votes
2 answers
8k views

How do I repair Ubuntu after running the command: sudo rm /*

While I was trying to remove files from a SD card from the same directory, I ran sudo rm /* and now Ubuntu isn't working. When I restarted I get the error: kernel panic attempted to kill init. I'm new ...
Jag Mohan Ray's user avatar
0 votes
0 answers
33 views

How can I remove a folder that cannot be deleted (two folders in the same directory have the same inode number)?

I have tried using rm with various flags, such as -d and -r (-r was successful as folder is now empty), tried moving to trash through GUI (which produces error that file cannot be moved to trash), ...
001121100's user avatar
0 votes
0 answers
35 views

delete Ubuntu dual boot

I installed Ubuntu using ventoy on Windows. In the setup screen, I clicked “Install Ubuntu” and “Install Ubuntu alongside Windows Boot Manager” I installed it on the C drive, not on a new partition. ...
useruSeR's user avatar
0 votes
1 answer
24 views

So how do I get rid of this email server from the dock and The Nautilus file manager?

This server icon thing I cant get rid of it, I deleted the default keyrings so its useless and I Cant delete this icon. I am on ubuntu 22.10 On raspberry pi
admin free's user avatar
0 votes
2 answers
754 views

Create a temporary users on ubuntu

I want to create a temporary user on ubuntu that gets deleted within a certain period of time. I can extend the deletion time. I can get the value of the remaining time for the user before deletion. ...
Said Dias's user avatar
0 votes
1 answer
29 views

I Can't delete files after booting into Windows 10

I have a dual boot, Ubuntu 22.04 and Windows 10. After booting into Windows 10, I can no longer delete any files or folders in Ubuntu. Even if I open Nautilus as sudo it will still not allow me to ...
Taroidar's user avatar
2 votes
1 answer
186 views

Remove/Delete a string of characters from filenames

I have a bunch of text files that end with the line www.thethinkfoundation.org, for example: file1.www.thethinkfoundation.org.txt file2.www.thethinkfoundation.org.txt . . . file100.www....
alien.on.earth's user avatar
0 votes
0 answers
62 views

Unable to remove software from Ubuntu Software Centre

so I installed xArchiver from ubuntu software, but couldn't run it (some kind of scam the app is 500kb), then I wanted to uninstall it but couldn't, ubuntu software would give me an error saying no ...
JohnDoeVI's user avatar
0 votes
0 answers
147 views

Deleted x86_64-linux-gnu

I accidentally deleted usr/lib/x86_64-linux-gnu using rm -rf. Do I need to re-install the OS or can I repair it somehow? Ubuntu 20. something
Alberto's user avatar
0 votes
0 answers
59 views

How do I delete /.snapshots

/.snapshots causes problems in my system and I cant get rid of it it shows me error that I cant delete read only file and can anyone even tell my why is this dir 87gb
jifitailu's user avatar
1 vote
0 answers
80 views

UFW Delete 1 (or more) Rule(s) (silently)?

Is there a way to make Ubuntu Fire Wall delete a rule without asking if I really want to delete it? Just like you "pre-yes" apt install [package] by -y. I want to be able to read out only ...
Andras's user avatar
  • 131
0 votes
0 answers
101 views

Is it safe to remove CacheStorage directory under .config/Code/ServiceWorker?

I've just noticed a large directory (2.4GB) in disk analyser. It is in /home/user/.config/Code/ServiceWorker/CacheStorage which contains many many small files. I guess that this is where some settings ...
Brzoskwinia's user avatar
3 votes
1 answer
1k views

How to clear password history in Linux?

How do I clean the history of previous used passwords? The history which is used by passwd or whatever else? I see: t-account@dbg-host: ~ $ passwd Changing password for t-account. Current password: ...
Asc's user avatar
  • 43
-3 votes
2 answers
208 views

I want to delete all files in a particular directory which are smaller than a specific size

I want to delete the files in a particular directory which are smaller than than a specific size. For example, I have five files on a server: File1.20221001 size:-1430KB File1.20221002 size:-1320KB ...
Basavaraj Pn's user avatar
0 votes
1 answer
56 views

snap application says it's up to date, but -v shows an older version

the app in question is gallery-dl, and I had it installed via the snap store. a recent update of the app 1.23.1 -> 1.23.2 has some fixes to some issues i had. I "sudo snap refresh gallery-dl&...
Jeen0's user avatar
  • 9
0 votes
0 answers
104 views

Preparing my work laptop for returning

I want to give my work laptop back to my employer. It has Ubuntu installed on it. I would like to create a new admin user with a new password and delete my current user (the only one the system has) - ...
Patricia's user avatar
  • 101
0 votes
1 answer
120 views

Delete all files (except hidden files) in a folder

I need to delete all directories and files, except hidden files like .htaccess from this directory: generated/code I tried this: rm -rf generated/code/* but I get rm: cannot remove 'generated/code/...
Black's user avatar
  • 764
0 votes
0 answers
287 views

Deleted /dev/dm-0

So...I wanted to remove a swap file located in /dev/dm-0. I accidentally deleted the entire /dev/dm-0 directory instead of the swap file. Is there any way to reinstall it? I've tried installing ...
Ema's user avatar
  • 1
1 vote
0 answers
97 views

Ubuntu 20.04; Some repeat keys are "overshooting"

So I've just set up Ubuntu 20.04 on a new laptop (HP Envy 2022, i7-1260P) and I've noticed a strange phenomenon with repeat keys. If I'm typing and want to repeat the letter "h", I hold down ...
bobzwik's user avatar
  • 11
0 votes
0 answers
29 views

Booting from USB and trying to delete files from Windows folders - permission denied

My computer crashed and won't boot past the Asus BIOS/ UEFI / EZ mode and just goes around in a loop. So I have installed Ubuntu onto a USB, successfully booted from that and now I can access all the ...
PEA NUT's user avatar
0 votes
1 answer
128 views

deleted /etc/environment file by accident

I deleted the /etc/environment file by accident. Is it important? What does it do? How can I recover it? I saw another post saying most of the time the file has the same generic line: PATH="/usr/...
EllistonV's user avatar
0 votes
0 answers
42 views

list recently deleted files

I accidentally deleted the wrong folder with shift-delete. After a few seconds, I cancelled the deletion process, which saved some files, however some might have been deleted. I would like to know ...
Enk9456's user avatar
  • 13
0 votes
1 answer
819 views

Trying to delete several directories in Ubuntu 22.04, -r option in rmdir is not allowed

Trying to delete some directories for removed software in 22.04 and when I open Term and type in 'sudo rm -r directory name it comes back with this error message: rmdir: invalid option -- 'r' This -r ...
Jim_HiTek's user avatar
  • 161
0 votes
0 answers
225 views

Remapped Shift+Backspace to Delete works only for some applications

By default Linux on a Mac now has Fn+Backspace=Delete, but on a Macbook Air the keys Fn and Backspace are too far from each other and Delete can only be done with two hands, which is sometimes ...
cipricus's user avatar
  • 3,002
0 votes
0 answers
15 views

Can't rename or delete files on my other partitions [duplicate]

I am an absolute beginner, I'vs just installed ubuntu on the partition that I have Windows 10 on (after formatting it), during the installation process I didin't erase the whole disk bc I didn't want ...
Suhail Mahmoud's user avatar
0 votes
0 answers
2k views

How to delete bridge permently

I use sudo brctl delbr br0 but its back after reboot. I also tryd sudo brctl delif br0. But it always back after rebooting. cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(...
petep's user avatar
  • 139
0 votes
1 answer
163 views

How can I completely purge trash service with their functionality from ubuntu 20.04?

How can I completely purge trash service with their functionality from ubuntu 20.04? I want to fully remove this service daemon with program files and package if it exist. All advises about that ...
Alexander4062's user avatar
1 vote
3 answers
233 views

How to delete a bunch of files in a folder knowing a part of their filename?

I have a folder of Markdown files. The files use the following filename convention: [Time-based ID] [Title]. With this convention, you have filenames such as 202204101548 Banana bread or 202204101549 ...
Annabella's user avatar
-1 votes
1 answer
101 views

Get rid of the OS that installed grub

I have a laptop that runs windows 10, Ubuntu and deepin 20. Deepin 20 is the latest operating system I installed. I want to get rid of it. I tried to delete the deepin partition but that got me suck ...
Eyup Ensar Ozgoren's user avatar
0 votes
2 answers
817 views

accidentally removed folder as a root

I did sudo -i and rm -r folder ...I typed the wrong folder and deleted a folder I didnt want to delete. Bad practice I know :( Where did the folder end up? Any chance of retrieve? I am not sure where ...
serosse's user avatar
1 vote
1 answer
791 views

Deleting files under /etc/sudoer.d

I granted another user account sudo privileges for running Docker commands by adding a file with their username directly under /etc/sudoers.d: username ALL=(root) NOPASSWD:/usr/bin/docker I now want ...
ChrisM's user avatar
  • 133
0 votes
1 answer
70 views

Undeletable "Icon" file

I have a strange problem with some files on my NAS that are not deletable, maybe remnants of some MacOS file copy. They appear with filename "Icon" in file manager but as 'Icon'$'\r' with ls....
lucaspeed's user avatar
0 votes
1 answer
190 views

Accidentally deleted everything in home directory along with other important files

Might be the worst mistake I've made in Ubuntu. To give some context: I created a directory named "~" by accident in the home directory. Didn't want it so I recursively deleted the directory....
Carlo's user avatar
  • 1
0 votes
0 answers
42 views

Keep bigger size image file and delete image files with smaller sizes of same name, using terminal command

Keep bigger size image file and delete image files with smaller sizes of same name, using terminal command My directory may contain a_500.jpg, a_1280.jpg BUT b_500.jpg, c_500.jpg, c_800.jpg. So, in ...
Estatistics's user avatar
2 votes
1 answer
201 views

Why is there an option to overwrite free space twice nautilus

What is the benefit of overwriting free space more than once? If you install the plugin that adds this option there are options like: overwrite free space -> overwrite once, overwrite 2 times (save ...
france1's user avatar
  • 183
0 votes
1 answer
3k views

How to uninstall all software and files in Ubuntu server?

I have a Ubuntu Server. And over the course of time, I have installed countless apps like Apache, Minecraft server etc. but Now I need to uninstall all software and files in Ubuntu server except the ...
theghostin's user avatar
1 vote
1 answer
114 views

Mapping `del` functionality onto another key doesn't preserve single-press repeat functionality

My del key is working just fine with single-press repeat actin (i.e. if I keep it pressed, it keeps deleting characters) but if I try to map it (or the DEL functionality` onto another key, this breaks....
George's user avatar
  • 45

1
2 3 4 5
14