Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Command for deleting assets #103

Open
Souptik2001 opened this issue Jul 1, 2023 · 0 comments
Open

Command for deleting assets #103

Souptik2001 opened this issue Jul 1, 2023 · 0 comments

Comments

@Souptik2001
Copy link
Contributor

Currently, the CLI script only supports upload command to upload assets to server.

But it would be great if there can be a delete command which can be used to delete assets from the server with some filters. So, I came across two use cases, which are deleting all images of an album and the second is deleting all images within a given timeframe. So, based on these requirements I have developed this command on my fork of this repo and have been using it. The usage is something like this:

By album:

immich delete --key <key> --server https://example.com/api --album <album_id>

By timeframe:

immich delete --key <key> --server https://example.com/api --date_lower_limit "2 July 2023" --date_upper_limit "10 July 2023"

So, if this seems to be a feature that can be added to the official release, then I can raise a PR. Please let me know. 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant