<html>

<head>

<title>Deleting a Directory Replica</title></head>

<body  BGCOLOR="#ffffff">

<table border="0">

<td width="10">&nbsp;</td>

<td>

 <a href="Admin366.htm"><img src="./prev.gif" border="0" alt="Previous" WIDTH="32" HEIGHT="32"></a><a href="Admin368.htm"><img src="./next.gif" border="0" alt="Next" WIDTH="32" HEIGHT="32"></a><p>

<h3>     Deleting a Directory Replica<p>

</h3>If a directory is replicated, all the replicas have to be deleted individually.  Then the directory can be deleted using the commands described in the previous topic.  <p>

To display a list of all replicas of a directory, use the <b>dcecp</b> utility's <b>directory show</b> command.  Look at the <b>CDS_Replicas</b> attribute of the directory in the list.  Each 

replica's <b>CDS_Replicas</b> attribute has several sub-attributes.  Look at the <b>CH_Name</b> sub-attribute for each replica to get the name of the clearinghouse where it is located.  For 

example: 

</b><p>

dcecp&gt; <b>directory show /.:/sales</b> </b><p>

{RPC_ClassVersion {01 00}}<p>

{CDS_CTS 1994-05-06-11:41:05.314-05:00I0.000/08-00-09-25-13-52}<p>

{CDS_UTS 1994-06-21-03:06:08.842-05:00I0.000/08-00-09-25-13-52}<p>

{CDS_ObjectUUID 5f97a584-bf9b-11cd-9362-080009251352}<p>

{CDS_Replicas <p>

 {{CH_UUID de3401e6-bb98-11cd-aac5-080009251352} <p>

  {CH_Name /.../absolut_cell/absolut_ch}  <p>

  {Replica_Type Master}   <p>

  {Tower {ncacn_ip_tcp 130.105.5.93}} <p>

  {Tower {ncadg_ip_udp 130.105.5.93}}}}<p>

{CDS_AllUpTo 23854-01-29-19:45:44.841-05:00I0.000/08-00-09-25-13-52}<p>

{CDS_Convergence medium}<p>

{CDS_ParentPointer <p>

 {{Parent_UUID df13b228-bb98-11cd-aac5-080009251352} <p>

  {Timeout  <p>

   {expiration 1994-08-24-19:30:30.827}  <p>

   {extension +1-00:00:00.000I0.000}}  <p>

  {myname /.../absolut_cell/sales}}}<p>

{CDS_DirectoryVersion 3.0}<p>

{CDS_ReplicaState on}<p>

{CDS_ReplicaType Master}<p>

{CDS_LastSkulk 1994-01-29-19:45:44.841-05:00I0.000/08-00-09-25-13-52}<p>

{CDS_LastUpdate 1994-06-21-03:06:08.842-05:00I0.000/08-00-09-25-13-52}<p>

{CDS_Epoch 60ac0730-bf9b-11cd-9362-080009251352}<p>

{CDS_ReplicaVersion 3.0}<p>

dcecp&gt;<p>

The name of the directory and the name of the clearinghouse can be used to uniquely identify each replica.  Use these names in a series of <b>directory delete</b> commands to remove the replicas.  

The name of each replica is the argument to the command and the name of the clearinghouse should be used as the value of the <b>-clearinghouse</b> option.  The <b>-replica</b> option should also 

appear in the command line to indicate that the directory to be deleted is a replica.  An example command line is the following: 

</b><p>

dcecp&gt; <b>directory delete  /.:/sales -replica -clearinghouse /.:/NY1_CH <br></b>dcecp&gt;</b><p>

<b>Note:</b> 	The <b>directory delete</b> command does not require that directory replicas are empty in order to operate on them.  It will delete the replicas, all their contents, and their child 

directories immediately, without prompting for confirmation of the operation. 

</b><p>

You may want to write a <b>dcecp</b> script that looks at the <b>CDS_Replicas</b> attribute, finds all the replicas and deletes them with one command.  See <a href="Admingd3.htm">Part 1</a> of 

this guide for a discussion of writing scripts. 

</b><p>

<h2><b></h2></b><p>

<b></b></b><p>

</td>

</table>

</body></html>

