[Archivesspace_Users_Group] rad "delete repos" script

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Thu May 21 08:52:54 EDT 2015


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 <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Callahan, Maureen <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), 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
##############################
deleting accessions
http://localhost:8089//repositories/2/archival_objects?all_ids=true
##############################
deleting archival_objects
http://localhost:8089//repositories/2/classification_terms?all_ids=true
##############################
deleting classification_terms
http://localhost:8089//repositories/2/classifications?all_ids=true
##############################
deleting classifications
http://localhost:8089//repositories/2/digital_object_components?all_ids=true
##############################
deleting digital_object_components
http://localhost:8089//repositories/2/digital_objects?all_ids=true
##############################
deleting digital_objects
http://localhost:8089//repositories/2/events?all_ids=true
##############################
deleting events
http://localhost:8089//repositories/2/resources?all_ids=true
##############################
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/20150521/347cb62b/attachment.html>


More information about the Archivesspace_Users_Group mailing list