<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Maureen,</p>
<p><br>
</p>
<p>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. </p>
<p><br>
</p>
<p>b,chris. <br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat  | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<div style="word-wrap: break-word; color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Callahan, Maureen
 <maureen.callahan@yale.edu><br>
<b>Sent:</b> Tuesday, May 19, 2015 1:25 AM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> [Archivesspace_Users_Group] rad "delete repos" script</font>
<div> </div>
</div>
<div>Hey Chris,
<div class=""><br class="">
</div>
<div class="">I’m using your delete repositories ruby script (<a href="https://gist.github.com/cfitz/4fefcfa659ef18bfbe6c" class="">https://gist.github.com/cfitz/4fefcfa659ef18bfbe6c</a>), and I hit an error:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">PLEASE RE-ENTER THE REPOSITORY NAME TO VERIFY THIS IS WHAT YOU WANT TO DO : /repositories/2</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/accessions?all_ids=true" class="">http://localhost:8089//repositories/2/accessions?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting accessions</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/archival_objects?all_ids=true" class="">http://localhost:8089//repositories/2/archival_objects?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting archival_objects</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/classification_terms?all_ids=true" class="">http://localhost:8089//repositories/2/classification_terms?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting classification_terms</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/classifications?all_ids=true" class="">http://localhost:8089//repositories/2/classifications?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting classifications</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/digital_object_components?all_ids=true" class="">http://localhost:8089//repositories/2/digital_object_components?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting digital_object_components</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/digital_objects?all_ids=true" class="">http://localhost:8089//repositories/2/digital_objects?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting digital_objects</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/events?all_ids=true" class="">http://localhost:8089//repositories/2/events?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting events</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><a href="http://localhost:8089//repositories/2/resources?all_ids=true" class="">http://localhost:8089//repositories/2/resources?all_ids=true</a></div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">##############################</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">deleting resources</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">Attempting to delete /repositories/2</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo; min-height:13px">
<br class="">
</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo; min-height:13px">
<br class="">
</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">/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)</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/Cellar/ruby/2.2.0/lib/ruby/2.2.0/net/http.rb:853:in `start'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from /usr/local/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient.rb:81:in `delete'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from delete_repo.rb:39:in `delete_repo'</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><span class="Apple-tab-span" style="white-space:pre"></span>from delete_repo.rb:74:in `<main>’</div>
</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><br class="">
</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">Do you have any thoughts why I can’t seem to get the delete to stick?</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo"><br class="">
</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">Thanks!</div>
<div class="" style="margin:0px; font-size:11px; font-family:Menlo">Maureen</div>
</div>
</div>
</div>
</body>
</html>