[Archivesspace_Users_Group] Deleting all the digital objects in a repository
Jason Loeffler
j at minorscience.com
Mon Sep 18 13:03:24 EDT 2017
Hi Daniel,
To my knowledge, bulk delete operations of resource components and digital
objects from the staff interface is not currently supported.
I'm not sure whether you can simply delete the repository, as it may orphan
the digital objects it contains. Maybe someone else can confirm.
If you're able to gain command line access to your instance, you can first
list all of the ids in a given repository, then pipe that into a delete
request.
More here:
https://archivesspace.github.io/archivesspace/api/#post-repo
sitories-repo_id-digital_objects
https://archivesspace.github.io/archivesspace/api/#delete-re
positories-repo_id-digital_objects-id
Lydia Tang pulled together existing JIRA tickets on this matter here:
https://archivesspace.atlassian.net/browse/AR-1849
Some of us the Technical Advisory Council are interested in putting
together an API cookbook for cases like yours. I'll add it to our work
plan.
It's also possible to do this with a plugin, though that's certainly more
labor intensive.
Note that you can increase the default page size by editing config.rb at
"AppConfig[:default_page_size]".
Best, Jason
Jason Loeffler
Technology Consultant | The American Academy in Rome
Minor Science | Application Development & Metadata Strategy
Brooklyn, New York
jason at minorscience.com
(347) 405-0826
minorscience (Skype)
On Mon, Sep 18, 2017 at 10:18 AM, Daniel L Thacker <Daniel.Thacker at tamuk.edu
> wrote:
> I was using a second repository to upload legacy collections into ASpace
> and then once the finding aid was complete I would transfer them over to
> our main repository. The trouble I ran into was the digital objects
> transferred but they stayed in the second repository. Is there anyway to
> do a mass deletion? There is around 11,000 digital objects and right now
> the only way I can delete them is one by one and 10 per page.
>
>
> Thanks,
>
>
> Daniel Thacker
>
> Digital Archivist
>
> James C. Jernigan Library
>
> Texas A&M University-Kingsville
>
> MSC 197
>
> 700 University Blvd
>
> Kingsville, TX 78363-8202
>
> 361-593-4154 <(361)%20593-4154>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170918/a87be318/attachment.html>
More information about the Archivesspace_Users_Group
mailing list