Results 1 to 2 of 2

Thread: Remove all files in /home/andy/.local/share/Trash/files

  1. #1
    Join Date
    Aug 2016
    Location
    El Lago, Texas
    Beans
    685
    Distro
    Ubuntu Mate

    Remove all files in /home/andy/.local/share/Trash/files

    I am trying to delete every file and directory in the Trash directory.

    I know I can just empty the trash, but this part of a cronjob.

    I have this and it works on Most files, but not all.

    Code:
    rm -r /home/andy/.local/share/Trash/files/*
    rm /home/andy/.local/share/Trash/files/.*
    It does not remove the directory

    .PeaZip

    Is there a command that will remove EVERYTHING?
    Ubuntu Mate 18.04 Bionic
    Mate Desktop

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,956

    Re: Remove all files in /home/andy/.local/share/Trash/files

    You could install trash-cli and then use the trash-empty command.

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
  •