<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip
 laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen ne>
<?Pub Inc>
<refentry id="delete-domain-1">
<refmeta><refentrytitle>delete-domain</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="delete-domain">delete-domain &mdash;
deletes the given domain</primary></indexterm><indexterm><primary sortas="deletes the given domain">
deletes the given domain &mdash; delete-domain</primary></indexterm><refname>
delete-domain</refname><refpurpose>deletes the given domain</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>delete-domain</command><arg>&Dash;&Dash;domaindir <replaceable>
install_dir</replaceable>/domains</arg><arg>&Dash;&Dash;terse=<replaceable>
false</replaceable></arg><arg>&Dash;&Dash;echo=<replaceable>false</replaceable></arg>
<arg choice="plain"><replaceable>domain_name</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>Use the <command>delete-domain</command> command to delete the named
domain. The domain must already exist and must be stopped.</para>
<para>This command is supported in local mode only.</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><option role="nodash">&Dash;&Dash;domaindir</option></term>
<listitem><para>The directory where the domain to be deleted is located. If
specified, the path must be accessible in the filesystem. If not specified,
the domain in the default <filename><replaceable>install_dir</replaceable>/domains
</filename> directory is deleted.</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash">&Dash;t</option> <option role="nodash">&Dash;&Dash;terse
</option></term><listitem><para>Indicates that any output data must be very
concise, typically avoiding human-friendly sentences and favoring well-formatted
data for consumption by a script. Default is false.</para>
</listitem></varlistentry><?Pub Caret>
<varlistentry><term><option role="nodash">&Dash;e</option> <option role="nodash">&Dash;&Dash;echo
</option></term><listitem><para>Setting to true will echo the command line
statement on to the standard output. Default is false.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>domain_name</replaceable></term><listitem>
<para>The unique name of the domain you wish to delete.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using the delete-domain command</title>
<screen>asadmin> <userinput>delete-domain --domaindir /export/domains sampleDomain
</userinput>
Domain sampleDomain deleted

</screen>
<para>Where: the <filename>sampleDomain</filename> domain is deleted from
the <filename>/export/domains</filename> directory.</para>
</example>
</refsect1>
<refsect1><title>&exit-tt;</title>
<variablelist termlength="medium">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&also-tt;</title>
<para><link linkend="create-domain-1"><citerefentry><refentrytitle>create-domain
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link linkend="start-domain-1"><citerefentry>
<refentrytitle>start-domain</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="stop-domain-1"><citerefentry><refentrytitle>stop-domain</refentrytitle>
<manvolnum>1</manvolnum></citerefentry></link>, <link linkend="list-domains-1"><citerefentry>
<refentrytitle>list-domains</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000004424>
