Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [delete]

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

0
votes
0answers
13 views

How to delete ubuntu? [duplicate]

I am trying to delete ubuntu and grub form my system, but I can not delete the partitions of ubuntu. When I click at the partitions in disk management, it only shows help, and no other options. ...
1
vote
2answers
35 views

Find folders and delete contents

I want to find all folders that have a particular name and then delete all contents but not the folder... This is to find the folder: find /home/ -type d -name 'myname' Now how to delete all ...
0
votes
3answers
51 views

Remove all partition from USB drive

On 18.04 I've made a bootable pen drive. Now I don't need it. I want to remove the iso9660 partition. sudo cfdisk /dev/sdb I tried to delete (it makes) but when I want to save the changes, it fails....
0
votes
0answers
22 views

Re-install font on Ubuntu 18.04

[ Re-install font Ubuntu 14.04 ] I know this post and the post above has the same title but that isn't what I'm searching for I have been using Ubuntu Linux for only almost a week and during that I'...
0
votes
3answers
147 views

How to clear all files in a folder ending with `.log`? [duplicate]

I have log files in a folder. These files after some size are creating a new file old_name.log1 and writing to it. Now there are many files and I can't clear them one by one. I want to delete ...
0
votes
1answer
44 views

Delete files and folder with exceptions

Problem: I need to delete files and folder from a directory full of files and folders with exceptions of files that I don't want to be deleted. First attempt: rm -r !(c_50.tbl sim.sh pam.prp PROINT ...
0
votes
0answers
27 views

DEL key of Keyboard does not work

I tried searching in the forum but could not find any solution to my problem. When I press Delete (as in text-editor), it does not do anything. I would like it to perform its usual functionality, ...
0
votes
1answer
60 views

How to delete a proportion of files?

I have a backup directory on a server that takes daily backups. That results in a lot of data which I want to purge whilst still keeping some of the backups. Essentially a round robin system. I am ...
6
votes
1answer
462 views

Accidentally removed $HOME/bin

I accidentally removed my ~/bin directory. I have seen plenty of questions asking what to do if /usr/bin is removed, and that situation seems to be much more serious. What can I do to reconstruct the ...
0
votes
1answer
47 views

How can I delete time-stamped folders if one has already been created that day?

Folders are created every time I (re)boot. They have the format below: (the time will always vary) .mozilla_2019_01_08_08:02 .mozilla_2019_01_09_20:16 .mozilla_2019_01_10_01:16 ....
1
vote
2answers
90 views

How can I delete all but the newest 10 hidden folders in a directory

I backup .mozilla every (re)boot to a folder ~/nas-backups/mozilla but I only want to keep the most recent 10 folders alphabetically. The backups are stored with a date stamp e.g. ....
14
votes
1answer
2k views

What's wrong with this 'find' command?

I am executing the following command (to find all files with .ts extension and deleting them): find . -type f -name "*.ts" –delete An error shows up: find: paths must precede expression: `–delete' ...
1
vote
0answers
84 views

I deleted my Trash file/folder

I need help... I had an extension that wouldn't uninstall - so I moved its file to trash. However, once the file was sent to trash; the trash couldn't be emptied... I read that If I deleted my trash ...
0
votes
0answers
26 views

Accidentally deleted lines in sources.list [duplicate]

I updated from Ubuntu 17.10 (which is EOL) to 18.10 and had to outcomment some lines of sources.list. But I also deleted some outcommented wine lines at the end. A dumb idea, because since then, I ...
0
votes
1answer
41 views

Deleting all the listed files [duplicate]

I used locate <filename> in order to see where are all the files with <filename>. Is there a command to delete all the files with that <filename>? For example, I want to delete all ...
0
votes
2answers
32 views

Cannot delete directory

I'm facing the following problem: I have a folder which I cannot delete. I cannot even list it's contents. The story of this folder is that it was being used to store some logs which increased ...
1
vote
0answers
23 views

how to recover a deletd ext4 GPT partition on one drive, from a DD'ed 2nd drive that was RM -RF'ed [duplicate]

good day to all! I goofed. In prepping for a migration .. I DD'ed a drive to another spare to have a backup of the files. Then I booted next weekend not knowing that I mounted the 2nd DD'ed backup ...
1
vote
1answer
38 views

Can't move(restore) or delete folder in trash

Right now there is a folder called 'Pasta sem nome' (which translates to untitled folder) in trash. When I try to delete it or move it I get a message saying I don't have enough permissions. The ...
1
vote
2answers
63 views

Removing the Ubuntu 16.04 Operating System [duplicate]

Can the Ubuntu 16.04 Operating System be removed / emptied from my computer? Help me to solve this, I want to restore my computer like a new situation, which is without an operating system.
0
votes
1answer
41 views

There's an eclipse folder in my trash that I can't delete. Is it okay if I try to forcefully delete it?

I'm new to Ubuntu and programming and to this forum (first post!). So I'm usually very careful about everything I do, because I'm so afraid of making a mistake and breaking something beyond repair. So ...
9
votes
1answer
666 views

Why does deleting a folder from the command line take longer than manual deletion? [duplicate]

I noticed whenever I want to delete a folder containing a lot of data using a command line (sudo rm -r folder_name), the Terminal hangs on for the operation to terminate. But at the same time, when I ...
0
votes
0answers
45 views

ureadahead appears to be caching files from Trash Can

With one of the fastest NVMe SSD's on the market I'm not even sure ureadahead has been beneficial to me. After reading these messages though I'm wondering if it is detrimental: Oct 16 16:48:57 alien ...
2
votes
1answer
195 views

How to delete random n files from directory?

I have a uploads directory and I want to delete random 1000 images from it. How can I do that with command ? I am able to delete single with rm but it tooks long.. Is there any way to bulk delete on ...
0
votes
0answers
40 views

How to Delete “Alongside” Ubuntu

Before I installed the Ubuntu 18.04 I'm using now, I installed the same distro, which is now just taking up a whole lot of disk space. How do I delete that, and can I do it safely? I've messed up my ...
2
votes
1answer
44 views

Delete folders owned by specific group?

I have loads of folders and files in the storage system, files and folders created by a specific group needs to be removed, but I can't find any smart quick way to do it. Not via find or anything.
0
votes
0answers
44 views

Unable to delete files on LuBuntu But I can on Ubuntu?

I have a shared directory on a nas drive for media files. On my Ubuntu 18.04 computer I can delete files via the Desktop file manager without issue. I have a secondary laptop running Lubuntu 17.04 ...
1
vote
2answers
223 views

Need to change permission so I can delete file in hard drive

I accidentally created, with Clonezilla, a disk image file into my Ubuntu hard drive (it's actually a folder with many files within). I have since learned how to use Clonezilla correctly and save ...
4
votes
1answer
194 views

How to remove the “Undo” popup when deleting a file in Nautilus

When I send a file to the Trash using the delete keyboard button, a popup appears at the top of the nautilus window, saying that the file has been removed, and showing a button to undo the operation. ...
0
votes
0answers
55 views

How do I fully delete Ubuntu without apt-get? [duplicate]

Most of my crouton/ubuntu commands are gone and don't exist anymore. Some examples are: dpkg, wget, apt-get, locate and many more. I don't know how to delete crouton/ubuntu without apt-get. I've ...
1
vote
2answers
51 views

Delete Small Folders Under 50 MB With Spaces in Name

How do I delete all folders in a directory that are under 50 MB total in size? The directories have spaces and special characters in their names, but no line feeds. There could be sub-directories ...
-1
votes
1answer
53 views

Unable to delete any file or folder in other partition of my laptop hard drive,using ubuntu 18.04

In my laptop i had windows 10 installed in one of the partition and other partition had all my files. recently i installed ubuntu 18.04 by deleting my windows 10 partition. Everthing is working fine ...
0
votes
0answers
86 views

Delete downloaded file from desktop [duplicate]

Two files I am not able to delete from my Desktop. These files I downloaded from chrome and is in .crdownload format
1
vote
2answers
162 views

Accidently deleted /dev/video0 and can't access the web cam via cheese

To solve a issue I created another issue. I read this two code on some forum: sudo rm /dev/video0 sudo mv /dev/video1 /dev/video0 Now I can't access my web cam plus the python script that I had ...
1
vote
1answer
59 views

Delete all files with a pattern

I have thousands of txt files in one folder. Many of them are unnecessary for me. I want to delete all unnecessary files at once. If I do this manually (by opening every file, see it's content and ...
0
votes
0answers
28 views

Automate Deletion of File from terminal

I want to write a Python script that will automate my commands without waiting for user input. My python script will delete the least played video. When I execute the command: rm video_123.mp4 it ...
0
votes
1answer
240 views

Delete Ubuntu 18.04 with dual boot with linux mint on SSD [duplicate]

I have installed linux ubuntu but had some problem with the divers so i installed linux mint but now they are splitted in 2 halves on my SSD and want to delete ubuntu now. I am new to linux so i dont ...
0
votes
1answer
33 views

NTFS Archiving drive is only permanently deleting and cannot send items to trash

Okay so I've already done some research on this and I seem to have an intersection of a few problems. I have a drive /mnt/md0 that is a Raid1 3TB NTFS drive. My OS is 18.04.1 and is running off a ...
7
votes
1answer
3k views

How to free up the memory in the best way

I'm using Ubuntu 18.04 and 4GB RAM with CPU 4. I don't have too much memory left, so my computer works slowly and crashes. What would you recommend me to remove from directories? Or some command other ...
0
votes
0answers
16 views

How to delete an attachment of GPG signed emails in Evolution?

Using IMAP, I would like to delete email attachments in the email client Evolution (Version 3.18.5.2, Ubuntu 16.04). Normally, it works perfectly as described at How to delete an attachment in an ...
0
votes
1answer
61 views

Find files with the same name but different extensions and delete the oldest

I have a folder with files like this: 1.jpg (Modified 2018-07-18 12:00:00) 1.png (Modified 2018-07-17 12:00:00) 2.jpg (Modified 2018-07-18 14:00:00) 3.jpg (Modified 2018-07-17 20:00:00) 4.jpeg (...
0
votes
0answers
17 views

How to restore delted folder /usr/local after a rm command from terminal [duplicate]

I've been using Ubuntu 18.04 and accidentally deleted a folder /usr/local using command rm -rf. Does anyone have any idea how to recover the folder?
0
votes
1answer
548 views

How to delete multiple folders from multiple Directories from command line

I want to write a script for my Ubuntu users to delete multiple files from different directories at once. I what to run this on cron job so that it will do automatically. Eg. (I want to delete the ...
1
vote
0answers
19 views

Always Running Out of Space in Ubuntu on VirtualBox [duplicate]

I am a very new Ubuntu user and I am currently running Ubuntu on VirtualBox on a Mac: There is literally nothing installed but a small program in my Ubuntu, Nevertheless, my storage (30 GB) is almost ...
0
votes
0answers
101 views

Delete Bookmarks in Chrome

How can I delete the bookmarks from Chrome in Ubuntu(the right click would enable us to do this in Windows)?
0
votes
1answer
56 views

Script to delete content older than x days

I have the following script, though I would like to change it to deleting content once the directory reaches a certain size. What are my options? find /home/scott/google-drive/CAMMEDIA/* -mtime +1 -...
0
votes
1answer
39 views

Accidently deleted chrome inside /opt

I accidentally deleted chrome inside the /opt folder and now I get "Invalid desktop entry file" error while trying to launch it. sudo apt-get install google-chrome-stable displays I already have the ...
0
votes
1answer
67 views

Safely remove contents from .Private folder : Ubuntu 16.04

I have a problem with my growing .Private folder. I want to keep the encryption going but want to remove the stale copies of the files under .Private folder in my home directory. 1) Is it possible to ...
0
votes
0answers
14 views

How to define the use of keystroke in Nautilus?

On my keyboard (apple) I must press fn and backspace to delete a file, that a simple press on del usually do. I do not use the backspace to go back a folder. I would like backspace to do what del ...
0
votes
2answers
2k views

How to create a cron job that automatically delete files that are older than 30 days?

I'm using Ubuntu 14 desktop. I use this machine to backup other machines and as an FTP server for the security cameras. I need to create a cron job that automatically deletes files that are older ...
1
vote
1answer
787 views

Wiping free disk space by deleting large amount of files regularly?

I was looking for a better way to securely clean free space in my ubuntu system. I found this link and there are some valuable advices to wipe free disk space. I have tried bleachbit method with free ...