Results 1 to 10 of 10

Thread: How do you delete files

  1. #1
    Join Date
    Apr 2014
    Beans
    12

    How do you delete files

    I searched online but from what I found I have to input command lines to delete a file, I am new to Ubuntu and thought the right click of the mouse would be enough but no.
    I tried highlighting the file and using the delete key but that didn't work either, so is there something I'm missing or is it inserting code to simply dlete a file?

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,670

    Re: How do you delete files

    Howdy,

    You can only delete files that belong to you. Files that do not are likely best left alone.

  3. #3
    Join Date
    Apr 2014
    Beans
    12

    Re: How do you delete files

    Hmm! I downloaded a file twice by mistake and I also wanted to delete a picture, so does that mean I'm stuck with them, I can see me going back to using Windows, a lot os simple tasks are not that simple on Ubuntu.

  4. #4
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How do you delete files

    See this tutorial: DeletingFiles

  5. #5
    Join Date
    Apr 2009
    Beans
    232
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How do you delete files

    In the file browser you can right-click the filename/icon to get a context menu. About halfway down it says "move to the rubbish bin".

    You get the same result highlighting the filename/icon and then hitting "del" on your keyboard.

    From the rubbish bin you can restore the file in case you change your mind about deleting it. Otheriwse you can "empty rubbish bin" to permanently delete the file.

    On the command line you go

    Code:
    rm /path/to/file/delete.me
    This deletes without first moving the file to the rubbish bin.

  6. #6
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you delete files

    Quote Originally Posted by Colin_Reece View Post
    I searched online but from what I found I have to input command lines to delete a file, I am new to Ubuntu and thought the right click of the mouse would be enough but no.
    I tried highlighting the file and using the delete key but that didn't work either, so is there something I'm missing or is it inserting code to simply dlete a file?
    Which file, and where is it? You can right-click and delete files that belong to your user account. Any files owned by Root are system files and best left alone unless you know what you are doing. You can't "just" delete a root-owned file. It doesn't belong to you!

    If you are 100% sure you need to delete it, then you need to run your file manager as root. This is easy to do, but I will let you do the research yourself to find out how to do it...

    (Or you can use the command-line to delete it as root, either way is fine).
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  7. #7
    Join Date
    Apr 2014
    Beans
    12

    Re: How do you delete files

    No sorry didn't get any option to delete to the rubish bin, all I get is the option to open it.
    I'm on Ubunto 14.04 if that is any help.

  8. #8
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: How do you delete files

    Quote Originally Posted by Colin_Reece View Post
    No sorry didn't get any option to delete to the rubish bin, all I get is the option to open it.
    I'm on Ubunto 14.04 if that is any help.
    If you right-click on a file in your home folder or on the desktop in Ubuntu 14.04, you should see a context menu like this with "Move to the Rubbish Bin" about halfway down. "Rubbish Bin" may be replaced with "trash" or another string depending on your location. The first line in the context menu will vary according to the type of file - I clicked on an image file as an example.


    What exactly are you seeing and where is the file that you are clicking on?

    contextmenu.png
    Ubuntu 16.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  9. #9
    Join Date
    Apr 2014
    Beans
    12

    Re: How do you delete files

    Ah! That did it, I wasn't in the home folder to view the files, thank you.

  10. #10
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: How do you delete files

    @Colin_Reece, in fact Ubuntu works almost exactly the same way as Windows for deleting files in the GUI. You can move to trash/rubbish bin/recycle bin from the right-click context menu. Or you can highlight the file and press the del key to move to trash.

    Or if you want to hard delete, highlight the file to be deleted in the file browser, and press shift-delete. You will be prompted with a "are you sure?" or words to that effect type prompt in both Ubuntu and Windows, and if you then OK it, the file will be deleted, bypassing the trash/recycle bin.
    Ubuntu 16.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •