[Archivesspace_Users_Group] rad "delete repos" script

Callahan, Maureen maureen.callahan at yale.edu
Mon May 18 19:25:15 EDT 2015


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/20150518/77843428/attachment.html>


More information about the Archivesspace_Users_Group mailing list