[Archivesspace_Users_Group] rad "delete repos" script

Callahan, Maureen maureen.callahan at yale.edu
Tue Jun 2 13:40:36 EDT 2015


Hi Chris,

Sorry for the long delay - I was taking a vacation and doing a really good job of not checking work email.

I think you're totally right. The issue was that the folks at HM built us a plug-in that adds a table to the database that has records that reference the repository I want to delete. I may try my hand at modifying your ruby script to account for those records. I'll let you know how it goes!

Maureen

Maureen Callahan
Archivist, Metadata Specialist
Manuscripts & Archives
Yale University Library
maureen.callahan at yale.edu<mailto:maureen.callahan at yale.edu>
203.432.3627

Webpage: web.library.yale.edu/mssa
Collections: drs.library.yale.edu

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Chris Fitzpatrick
Sent: Thursday, May 21, 2015 8:53 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] rad "delete repos" script


Hi Maureen,



There must be something there that hasn't been deleted that's causing the repository record to not be allowed to delete. Can you have a look at the log when you run this? You can use the backend log viewer in System => System Information if you're logged in as an admin.



b,chris.




Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Callahan, Maureen <maureen.callahan at yale.edu<mailto:maureen.callahan at yale.edu>>
Sent: Tuesday, May 19, 2015 1:25 AM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] rad "delete repos" script

Hey Chris,

I'm using your delete repositories ruby script (https://gist.github.com/cfitz/4fefcfa659ef18bfbe6c<https://urldefense.proofpoint.com/v2/url?u=https-3A__gist.github.com_cfitz_4fefcfa659ef18bfbe6c&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=fNjA35liZJi7NZiugibH0c-riUkqdzCzMJe1ayi8c2s&e=>), and I hit an error:

PLEASE RE-ENTER THE REPOSITORY NAME TO VERIFY THIS IS WHAT YOU WANT TO DO : /repositories/2
http://localhost:8089//repositories/2/accessions?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_accessions-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=WkXtYsMZWO45DvAb0dBN1wWZ54bdpMc4DK7pCu5oj-Y&e=>
##############################
deleting accessions
http://localhost:8089//repositories/2/archival_objects?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_archival-5Fobjects-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=z69OOsV22QT8hgyoOFq6jSyDbck9VQPC98xEFZsT3Ug&e=>
##############################
deleting archival_objects
http://localhost:8089//repositories/2/classification_terms?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_classification-5Fterms-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=V13nmvA4pJYjHiN8Q4cX7uDzPM2gWvf4p9ihjtT8N1g&e=>
##############################
deleting classification_terms
http://localhost:8089//repositories/2/classifications?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_classifications-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=OaRxQLlhWEnicqAIFw8vmW2k1NnM1EhKmX3niheeZUI&e=>
##############################
deleting classifications
http://localhost:8089//repositories/2/digital_object_components?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_digital-5Fobject-5Fcomponents-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=8Oc0Syf09kfOH9JuhCTLkl33dlE93Dq8gTb_NCyCpyc&e=>
##############################
deleting digital_object_components
http://localhost:8089//repositories/2/digital_objects?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_digital-5Fobjects-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=ai-5mTRwu_yJbeY5xx_l2ZLWwqaWHFKQ4zhpfhnhSKc&e=>
##############################
deleting digital_objects
http://localhost:8089//repositories/2/events?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_events-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=clW9YnilYhZ3B7HcveEEUKou8uCmzWQM5Isu58Omu_s&e=>
##############################
deleting events
http://localhost:8089//repositories/2/resources?all_ids=true<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089__repositories_2_resources-3Fall-5Fids-3Dtrue&d=AwMFAw&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pxzdb94g7yb5xtF99dPnRgynS-8iJDx5McdCaG7ijms&s=WAm11KkSgw8dk0LjqsvZsh3HEKU_wlMZODRtuQ5yU5c&e=>
##############################
deleting resources
Attempting to delete /repositories/2


/usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!': 409 Conflict (RestClient::Conflict)
from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result'
from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'
from /usr/local/Cellar/ruby/2.2.0/lib/ruby/2.2.0/net/http.rb:853:in `start'
from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient.rb:81:in `delete'
from delete_repo.rb:39:in `delete_repo'
from delete_repo.rb:74:in `<main>'

Do you have any thoughts why I can't seem to get the delete to stick?

Thanks!
Maureen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150602/1510115c/attachment.html>


More information about the Archivesspace_Users_Group mailing list