> V1.1.0 > Commands > Plakar prune
Version v1.1.0

Beta Version

You're viewing documentation for version v1.1.0. Beta versions are subject to changes and may not represent the final stable release. Do not use in production environments.

prune

PLAKAR-PRUNE(1)General Commands ManualPLAKAR-PRUNE(1)

plakar-prunePrune snapshots according to a policy

plakar prune[-apply] [-policy name] [snapshotID ...]

The plakar prune command deletes snapshots from a Plakar repository. Snapshots can be filtered for deletion by age, by tag, or by specifying the snapshot IDs to remove. If no snapshotID are provided, either -older or -tag must be specified to filter the snapshots to delete.

plakar prune supports the location flags documented in plakar-query(7) to precisely select snapshots.

The arguments are as follows:

Delete matching snapshot. The default is to just show the snapshot that would be removed but not actually execute the operation.
name
Use the given policy. See plakar-policy(1) for how policies are managed.

Remove a specific snapshot by ID:

$ plakar prune abc123

Remove snapshots older than 30 days:

$ plakar prune -days 30d

Remove snapshots with a specific tag:

$ plakar prune -tag daily-backup

Remove snapshots older than 1 year with a specific tag:

$ plakar prune -years 1 -tag daily-backup

The plakar-prune utility exits 0 on success, and >0 if an error occurs.

0
Command completed successfully.
>0
An error occurred, such as invalid date format or failure to delete a snapshot.

plakar(1), plakar-backup(1), plakar-policy(1), plakar-query(7)

September 10, 2025Plakar

Found a bug or mistake in the documentation? Create an issue on GitHub