<!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 Inc>
<refentry id="delete-javamail-resource-1">
<refmeta><refentrytitle>delete-javamail-resource</refentrytitle><manvolnum>
1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="delete-javamail-resource ">delete-javamail-resource &mdash;
removes a JavaMail session resource</primary></indexterm><indexterm><primary
sortas="removes the Javamail resource from the named instance">removes a JavaMail
session resource&mdash; delete-javamail-resource</primary></indexterm><refname>
delete-javamail-resource</refname><refpurpose>removes a JavaMail session resource
</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>delete-javamail-resource</command>&synopsis-common;
<arg>&Dash;&Dash;target <replaceable>target</replaceable></arg><arg choice="plain"><replaceable>
jndi_name</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>delete-javamail-resource</command> command removes the
specified JavaMail session resource. On Standard and Enterprise Editions,
make sure to remove all references to this resource before executing this
command. This command is supported in remote mode only.</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&Dash;target</option></term>
<listitem><para>This option helps specify the target from which you are deleting
the JavaMail session resource. Valid values are:<itemizedlist>
<listitem><para><literal>server</literal>, which deletes the resource from
the default server instance. This is the default value.</para>
</listitem>
<listitem><para><literal>domain</literal>, which deletes the resource from
the domain</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which deletes the
resource from every server instance in the cluster</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which deletes the
resource from a particular server instance</para>
</listitem>
</itemizedlist>&se-ee-only;</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>jndi_name</replaceable></term><listitem>
<para>The JNDI name of the JavaMail session resource to be deleted.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using the delete-javamail-resource command</title>
<para>The following command deletes the JavaMail session resource named <filename>
mail/MyMailSession</filename>:</para>
<screen>asadmin> <userinput>delete-javamail-resource --user admin 
--passwordfile passwords.txt --host fuyako --port 7070 mail/MyMailSession
</userinput>
Command delete-javamail-resource executed successfully.</screen>
</example>
</refsect1>
<refsect1><title>&exit-tt;</title>
<variablelist termlength="medium"><?Pub Caret>
<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-javamail-resource-1"><citerefentry><refentrytitle>
create-javamail-resource</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="list-javamail-resources-1"><citerefentry><refentrytitle>list-javamail-resources
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000004096>
