<!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-mbean-1">
<refmeta><refentrytitle>delete-mbean</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="delete-mbean">delete-mbean &mdash;deletes
a custom MBean.</primary></indexterm><indexterm><primary sortas="deletes a custom MBean">
deletes a custom MBean &mdash; delete-mbean</primary></indexterm><refname>
delete-mbean</refname><refpurpose>deletes a custom MBean. </refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>delete-mbean</command>&synopsis-common;
<arg choice="opt">&Dash;&Dash;target=<replaceable>server</replaceable> </arg>
<arg choice="plain">name</arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>Deletes a custom MBean. Ensure that the target MBeanServer is running. 
</para>
<para>This command is supported in remote mode only.</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<para>If an option has a short option name, then the short option preceeds
the long option name. Short options have one dash whereas long options have
two dashes.</para>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&Dash;target<?Pub Caret></option></term>
<listitem><para> The target for the MBean. Identifies the server instance.
Defaults to the name of the Domain Adminstration Server (DAS). If there are
multiple references to an MBean in various servers, only one specific reference
is deleted. When the last reference is deleted, the MBean definition is deleted
from the domain.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><option role="nodash">name</option></term><listitem><para>
 Identifies a custom MBean by name. The default name is the MBean's implementation
class name.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using delete-mbean</title>
<screen><userinput>delete-mbean --user admin --passwordfile filename.txt mbeantest1
</userinput></screen>
<para>This example shows the deletion of MBean, <literal>mbeantest1</literal></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-mbean-1"><citerefentry><refentrytitle>create-mbean
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
<para><link linkend="list-mbeans-1"><citerefentry><refentrytitle>list-mbeans
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000003398>
