[Archivesspace_Users_Group] Problems with deleting multiple location records

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Tue Jul 15 08:51:00 EDT 2014


Hi Jody,

Yes, bulk delete features is a feature that has been requested...
For now,  the two ways off the top of my head to do this would be to either 

a) delete the records in the database then trigger a total reindex by deleting the data/indexer_state directory in archivesspace

b) write a script to delete the locations in the backend

I wrote a ruby script here : 
https://gist.github.com/3db6e6c9313be8f2096f.git

You will probably need to change the BACKEND_URL, USER, and PASSWORD values to match your own. When run without any paramters added, the script will generate a CSV file with all your locations to review. You can use that review CSV file to make a CSV file of locations you want to delete, then rerun the script with a parameter added to point to your new CSV file. It will delete all the location uris provided in that CSV file.

Does that make sense? Let me know if you have any questions...

b,chris. 



Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/

________________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Thompson, Jody A <jody.thompson at library.gatech.edu>
Sent: Monday, July 14, 2014 5:19 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Problems with  deleting        multiple        location records

Hello. Currently, it's for a subset of all our locations, but in the future, we'll need to know how to delete all location records as we'll be going through a renovation. So, it would be great to know how to do both.

Thank you,
Jody

----- Original Message -----
From: "Chris Fitzpatrick" <Chris.Fitzpatrick at lyrasis.org>
To: "archivesspace users group" <archivesspace_users_group at lyralists.lyrasis.org>
Sent: Monday, July 14, 2014 10:53:52 AM
Subject: Re: [Archivesspace_Users_Group] Problems with deleting multiple        location records


Hi,

Do you want to delete all your location records or is 350 a subset of all your location records?


b,chris



Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/

________________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Thompson, Jody A <jody.thompson at library.gatech.edu>
Sent: Friday, July 11, 2014 8:58 PM
To: archivesspace_users_group at lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Problems with deleting multiple    location records

Hello. I batch loaded over 350 location records and need to delete all of them. I am able to delete them individually but want to delete multiple records at one time. Can someone please tell me how to do this? Thank you.

Jody Thompson

--
Jody Lloyd Thompson
Head, Archives and Records Management Dept.
Library & Learning Excellence
Georgia Institute of Technology
Atlanta, Georgia 30332-0900
t:404-894-9626
f:404-894-9421
www.library.gatech.edu/archives/
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

--
Jody Lloyd Thompson
Head, Archives and Records Management Dept.
Library & Learning Excellence
Georgia Institute of Technology
Atlanta, Georgia 30332-0900
t:404-894-9626
f:404-894-9421
www.library.gatech.edu/archives/
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



More information about the Archivesspace_Users_Group mailing list