<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.zarafa.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.zarafa.com/wiki/index.php?title=Permanently_delete_all_orphan_stores&amp;feed=atom&amp;action=history</id>
		<title>Permanently delete all orphan stores - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.zarafa.com/wiki/index.php?title=Permanently_delete_all_orphan_stores&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.zarafa.com/wiki/index.php?title=Permanently_delete_all_orphan_stores&amp;action=history"/>
		<updated>2013-05-24T12:32:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.zarafa.com/wiki/index.php?title=Permanently_delete_all_orphan_stores&amp;diff=593&amp;oldid=prev</id>
		<title>Msartor: New page: This is a script which will permanently delete all currently orphaned stores. Might come in handy when you have a lot of orphan stores which need to be deleted.   Do the following: * Save ...</title>
		<link rel="alternate" type="text/html" href="http://www.zarafa.com/wiki/index.php?title=Permanently_delete_all_orphan_stores&amp;diff=593&amp;oldid=prev"/>
				<updated>2010-04-02T12:35:41Z</updated>
		
		<summary type="html">&lt;p&gt;New page: This is a script which will permanently delete all currently orphaned stores. Might come in handy when you have a lot of orphan stores which need to be deleted.   Do the following: * Save ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a script which will permanently delete all currently orphaned stores. Might come in handy when you have a lot of orphan stores which need to be deleted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do the following:&lt;br /&gt;
* Save the script to a file on your zarafa system.&lt;br /&gt;
* chmod 755 [name_of_the_script]&lt;br /&gt;
* run the script&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The bash script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/bin/bash&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
ZARAFA_ADMIN=`which zarafa-admin`&lt;br /&gt;
AWK=`which awk`&lt;br /&gt;
&lt;br /&gt;
echo &lt;br /&gt;
echo &amp;quot;ALERT - This script will permanently delete all orphan stores!!!&amp;quot;&lt;br /&gt;
echo -n &amp;quot;Are you sure you want to continue [y/n]: &amp;quot;&lt;br /&gt;
&lt;br /&gt;
read USERINPUT&lt;br /&gt;
echo&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$USERINPUT&amp;quot; == &amp;quot;y&amp;quot; ]; then&lt;br /&gt;
  $ZARAFA_ADMIN --list-orphans | tail -n+4 | $AWK '{print $1}' |while read STOREID; do&lt;br /&gt;
    echo &amp;quot;Removing store: $STOREID&amp;quot;&lt;br /&gt;
    $ZARAFA_ADMIN --remove-store $STOREID&lt;br /&gt;
  done&lt;br /&gt;
else&lt;br /&gt;
  echo &amp;quot;Cancelled&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Msartor</name></author>	</entry>

	</feed>