<!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-persistence-resource-1">
<refmeta><refentrytitle>delete-persistence-resource</refentrytitle><manvolnum>
1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="delete-persistence-resource">delete-persistence-resource &mdash;
removes a persistence resource</primary></indexterm><indexterm><primary sortas="removes a persistence resource">
removes a persistence resource &mdash; delete-persistence-resource<?Pub Caret>
</primary></indexterm><refname>delete-persistence-resource</refname><refpurpose>
removes a persistence resource</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>delete-persistence-resource</command>&synopsis-common;
<arg><option role="nodash">&Dash;&Dash;target <replaceable>target</replaceable></option></arg>
<arg choice="plain"><replaceable>jndi_name</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>delete-persistence-resource</command> command removes a
persistence resource. This command is supported in the remote mode only. When
you delete a persistence resource, the command also removes the jdbc resource
if it was created using the <command>create-persistence-resource</command>
command with the option <option role="nodash">&Dash;&Dash;connectionpoolid
</option>. Please refer to the <command>create-persistence-resource</command>
command manpage for details. If you are using the Application Server Enterprise
Edition, make sure that you remove all associations to this resource and then
execute this command.</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&Dash;target</option></term>
<listitem><para>Specifies the target from which you are deleting a persistence
resource. &se-ee-only; Valid targets are: <itemizedlist>
<listitem><para><literal>server</literal>, which deletes the resource from
the default server instance. This is the default target.</para>
</listitem>
<listitem><para><literal>domain</literal>, which removes the resource from
the domain.</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which removes the
resource from every server instance in the cluster.</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which removes the
component from a particular sever instance.</para>
</listitem>
</itemizedlist></para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>jndi_name</replaceable></term><listitem>
<para>Specifies the JNDI name of the persistence resource.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using delete-persistence-resource</title>
<screen>asadmin> <userinput>delete-persistence-resource --user admin --passwordfile passwords.txt 
--host pigeon --port 5001 sample_persistence_resource</userinput>
Command delete-persistence-resource executed successfully</screen>
</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-persistence-resource-1"><citerefentry><refentrytitle>
create-persistence-resource</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="list-persistence-resources-1"><citerefentry><refentrytitle>list-persistence-resources
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000004487>
