Skip to content

Delete by number #272

Open
Open

Description

@codingthat

Is your feature request related to a problem? Please describe.
When you're stuck unable to boot and need to clean up timeshift backups via CLI (or walk someone through it remotely...) there's no autocomplete for the timestamps, so they're fairly arduous to delete one-by-one. Especially if you want to delete all except one so that you still have an actual backup...

Describe the solution you'd like
That timeshift --delete-nums 1-5,7 deletes the snapshots numbered 1,2,3,4,5 and 7 (as numbered in the output from timeshift --list).

Describe alternatives you've considered
Just supporting this on --delete.

Activity

  1. oghmjos commented on Oct 17, 2024

    @oghmjos

    +1 this would be very good to have!

  2. github-actions commented on Oct 18, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had
    any activity in over 2 years.

    If this issue is still relevant:

    • Please test on a current version of this package.
    • Add a comment with your findings

    If no activity occurs in the next 30 days, this issue will be
    automatically closed. Issues can be reopened if needed.

  3. ygerlach commented on Oct 18, 2026

    @ygerlach
    Contributor

    i think this is still a pain point.
    what do we do if a snapshot is created or deleted since the last run of the cli command and the numbers get reassigned? Should we have stable ids, that dont get reassigned (stored in the info.json)?

  4. codingthat commented on Oct 19, 2026

    @codingthat
    Author

    Thanks for the bump @ygerlach and good point. Stable IDs is good route. Another could be --delete-interactively where it shows you the current list and asks you for a selection, then confirms it with you, internally making sure the selection has no chance to shift.

    In either case perhaps listing all with the current selection highlighted as a confirmation is probably a wise idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions