<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;} @font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Shea,</p>
<p><br>
</p>
<p>I created a script to batch delete locations, which you can see here:</p>
<p><a id="lnk403655" href="https://gist.github.com/cfitz/3db6e6c9313be8f2096f">https://gist.github.com/cfitz/3db6e6c9313be8f2096f</a></p>
<div style="margin-top: 20px; margin-bottom: 20px;" id="LPBorder_GT_14105209567370.571297094447887">
<table style="border-top: 1px solid rgb(204, 204, 204); border-bottom: 1px solid rgb(204, 204, 204); width: 80%; background-color: rgb(255, 255, 255); position: relative;" id="LPContainer_14105209567360.7276099394099111">
<tbody>
<tr valign="top">
<td style="width: 140px; position: relative; display: table-cell;">
<div style="margin-top: 12px; background-color: rgb(255, 255, 255); height: auto; width: 140px; position: relative; display: table;" id="LPImageContainer_14105209567370.3414584138820246">
<a target="_blank" href="https://gist.github.com/cfitz/3db6e6c9313be8f2096f" style="display: table-cell; text-align: center;" id="LPImageAnchor_14105209567370.45091270144648354"><img aria-label="Preview image with link selected. Double-tap to open the link." style="display: inline-block; margin-left: auto; margin-right: auto; max-width: 140px; max-height: 140px; height: 140px; width: 140px; border-width: 0px;" height="140" width="140" src="https://avatars1.githubusercontent.com/u/142965?s=140"></a></div>
</td>
<td>
<div style="top: 0px; margin-top: 8px; font-size: 21px; font-family: 'Segoe UI Semilight','Segoe WP Semilight','Segoe UI WPC Semilight','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; color: rgb(51, 51, 51); margin-left: 14px; margin-right: 14px;" id="LPTitle_14105209567370.94506384755525">
Delete ASpace locations</div>
<div style="margin-top: 8px; font-size: 13px; font-family: 'Segoe UI','Segoe WP','Segoe UI WPC',Tahoma,Arial,sans-serif; color: rgb(102, 102, 102); margin-left: 14px; margin-right: 14px;" id="LPDescription_14105209567370.42034568308720766">
Delete ASpace locations - Gist is a simple way to share snippets of text and code with others.</div>
<div style="margin: 8px 14px 10px; height: 18px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;" id="LPUrlContainer_14105209567370.15159248204901687">
<a target="_blank" href="https://gist.github.com/cfitz/3db6e6c9313be8f2096f" style="font-size: 11px; font-family: 'Segoe UI','Segoe WP','Segoe UI WPC',Tahoma,Arial,sans-serif; text-decoration: none;" id="LPUrlAnchor_14105209567370.6676783081843363">Read more...</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<p><br>
</p>
<p>It's written in Ruby and required the rest_client gem ( "gem install rest_client" to install it)<br>
</p>
<p><br>
</p>
<p>Let me know if that works for you..b,chris.<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="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Shea, Patrick
 <PShea@chemheritage.org><br>
<b>Sent:</b> Thursday, September 11, 2014 7:17 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] Location Records</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Greetings everyone.  </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We just installed Archive Space at my institution this week, so I am brand new to the group, and unfortunately already in need of some basic assistance.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I just finished batch-creating “location records,” and now need to delete them all due to an error on my part.   I have begun deleting them individually, but I batch-created so many, that just about any alternative to that task would be
 more efficient.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Currently, the only thing I have done in AS is to create the repository, and manage the user access.  Starting everything over from scratch would not be a problem.  Do I have any alternatives to individually deleting or editing all of these
 location records?   </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any advice is greatly appreciated.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">-Patrick Shea</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"></p>
</div>
<font face="Arial" size="2">__________________________________ <br>
<br>
Patrick H. Shea, CA<br>
Chief Curator of Archives and Manuscripts<br>
Othmer Library of Chemical History<br>
P: +1.215.873.8265<br>
F: +1.215.629.5265<br>
</font><br>
<font face="Arial"><font size="2"><strong>Chemical Heritage Foundation<br>
</strong>LIBRARY • MUSEUM • CENTER FOR SCHOLARS<br>
315 Chestnut Street  •  Philadelphia, PA 19106 • U.S.A.<br>
</font></font><a title="" href="http://www.chemheritage.org/"><font face="Arial"><font size="2">chemheritage.org</font></font></a><br>
<br>
<br>
</div>
</div>
</body>
</html>