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 ability to delete versions of datastreams #53

Closed
mjordan opened this issue Apr 6, 2018 · 4 comments
Closed

Add ability to delete versions of datastreams #53

mjordan opened this issue Apr 6, 2018 · 4 comments

Comments

@mjordan
Copy link
Collaborator

mjordan commented Apr 6, 2018

From discussion starting at https://groups.google.com/d/msg/islandora/q1udVKoh194/YJD_4ulqCAAJ.

@mjordan
Copy link
Collaborator Author

mjordan commented May 2, 2018

Thinking a command like this is suitable. In this case, it would delete version 0 (the current one) and 1 (the previous one): drush islandora_datastream_crud_delete_datastream_versions --user=admin --dsid=FOO --versions=0,1 --pid_file=/tmp/delete_foo_versions_from_these_objects.txt

This would require knowing which versions you want to delete. If use cases for knowing the created date on the version to delete come up, we can address them then.

patdunlavey added a commit to patdunlavey/islandora_datastream_crud that referenced this issue Jun 4, 2019
…y to specify datastream versions in islandora_datastream_crud_delete_datastreams

See: SFULibrary#53
@bondjimbond
Copy link
Contributor

A case for this functionality has come up for me, as old versions of large derivative datastreams are cluttering up the repository. In my use case, I would like to delete all but the current version from a list of PIDs.

@mjordan
Copy link
Collaborator Author

mjordan commented Dec 4, 2020

@bondjimbond if you can test @patdunlavey's PR I'll merge it.

@mjordan
Copy link
Collaborator Author

mjordan commented Dec 7, 2020

Resolved with 4feafbf.

@mjordan mjordan closed this as completed Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants