Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run modes for cleaning up or deleting all albums #28

Merged
merged 7 commits into from
Aug 2, 2024
Merged

Add run modes for cleaning up or deleting all albums #28

merged 7 commits into from
Aug 2, 2024

Conversation

Salvoxia
Copy link
Owner

@Salvoxia Salvoxia commented Aug 2, 2024

Introduces new option -m/--mode (or env variable MODE for Docker) to run the script in different modes:

  • CREATE (Default) Generate album names from folders and create albums
  • CLEANUP Generate album names from folders and delete these albums (if they exist)
  • DELETE_ALL Get all albums from Immich and delete them

By default any mode other than CREATE will perform a dry-run only. To effectively delete anything, another option -d/--delete-confirm (or env variable DELETE_CONFIRM for Docker) must be set.

Added documentation for new -m/--mode option
Call the script with env variable UNATTENDED set to 1
Restructured README and added table of contents
Added documentation of new cleanup feature
@Salvoxia
Copy link
Owner Author

Salvoxia commented Aug 2, 2024

Implements #27

@Salvoxia Salvoxia merged commit cb94227 into main Aug 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant