How do I delete/uninstall backup files

I need to remove old backups from my SSD and my external (Western Digital) hard drive because they're taking up so much space.
Except for the most recent files/package, can I simply delete the old backups (I would think not), or do I need to actually uninstall them from my SSD and the external drive?

Looking at the file name of the backups, I don't know or understand what any of them are, so I don't know what can be removed safely, and what should remain.

enter image description here

If you're able to help, please remember I'm a newbie when it comes to Linux, so I may not have even heard of terminology that is commonplace to you. So, please be gentle. Also, I'm determined to learn as much as I can, so if you can direct me to any documentation or tutorials that would assist with this, I'd greatly appreciate it.


Using the GUI

The GUI doesn't have much options, the most you can do is go to the Scheduling tab and set the Keep setting to either "At least a year" or "At least 6 months". The application will manage storage space, by deleting old backups when it finds that the storage is low on space.

Déjà Dup

Command Line

If you are comfortable with the command line, you can run the following command in the terminal:

duplicity remove-older-than <time> [options] [--force] target_url

You can find more details about the options, and what you can do from the command line by running man duplicity.

To quote the manual:

remove-older-than
Delete all backup sets older than the given time. Old backup sets will not be deleted if backup sets newer than time depend on them. See the TIME FORMATS section for more information. Note, this action cannot be combined with backup or other actions, such as cleanup. Note also that --force will be needed to delete the files instead of just listing them.

The documentation of time and target_url are a bit large to include in here. However, here is a summary of their description available from error message.

time
The acceptible [sic] time strings are intervals (like "3D64s"), w3-datetime strings, like "2002-04-26T04:22:01-07:00" (strings like "2002-04-26T04:22:01" are also acceptable - duplicity will use the current time zone), or ordinary dates like 2/4/1997 or 2001-04-23 (various combinations are acceptable, but the month always precedes the day).

target_url
Bad URL '/home/dan/deja-dup/'.
Examples of URL strings are "scp://[email protected]:1234/path" and "file:///usr/local". See the man page for more information.

So as an example, to clean backups older than than the 1st of February 2016 in the ~/deja-dup directory, you can use the following command:

duplicity remove-older-than 2016-02-01 file:///home/$USER/deja-dup/

Note: This may not delete them directly if some of the matched backup are full backups that subsequent incremental backups may depend on them.
Also, according to the manual, this would only list the files that will be deleted. You will need to append the command with --force for the files to be deleted.

Déjà Dup uses duplicity as its backend (This means that it is basically a User Interface for duplicity).


If you delete ~/deja-dup and its content you will only use past backups. If you feel that you don't need them any longer (or not as much as the storage space they occupy), you can delete them safely.

I don't know about the files on the external drive because I don't know their names or what they are. If they have very similar names to the files in ~/deja-dup, the same as above applies.