<!--Arbortext, Inc., 1988-2007, v.4002-->
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD SolBook 3.5//EN" [
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "common.ent">
%commonents;
]>
<refentry id="delete-domain-1">
<!-- @(#)delete-domain.1 1.9 07/04/25 SMI; -->
<refmeta><refentrytitle>delete-domain</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">30 Jan 2007</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&software;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">Copyright (c) 2007, Sun Microsystems, Inc.
All Rights Reserved</refmiscinfo>

</refmeta>
<refnamediv><indexterm><primary>delete-domain</primary></indexterm><indexterm><primary>
deletes the given domain</primary></indexterm><refname>
delete-domain</refname><refpurpose>deletes the given domain</refpurpose></refnamediv>
<refsynopsisdiv><title></title>
<synopsis><command>delete-domain</command>  [<option role="double-dash">domaindir</option> <replaceable>install_dir</replaceable>/domains]
 [<option role="double-dash">terse</option>=<replaceable>false</replaceable>] [<option role="double-dash">echo</option>=<replaceable>false</replaceable>]
 <replaceable>domain_name</replaceable></synopsis></refsynopsisdiv>
<refsect1 role="description"><title></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 role="options"><title></title>
<variablelist termlength="medium">
<varlistentry><term><option role="double-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>t</option> <option role="double-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>
<varlistentry><term><option>e</option> <option role="double-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 role="operands"><title></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 role="examples"><title></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 role="exit-status"><title></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 role="see-also"><title></title>
<para><olink targetdoc="ASREFMAN" targetptr="create-domain-1">create-domain(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="start-domain-1">start-domain(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="stop-domain-1">stop-domain(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="list-domains-1">list-domains(1)</olink></para>
</refsect1>
</refentry>
<?Pub *0000004424>
