<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY synopsis-common SYSTEM "synosis-common.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<refentry id="unset-1">
<refmeta><refentrytitle>unset</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="unset">unset &mdash; removes one or
more variables from the multimode environment</primary></indexterm><indexterm>
<primary sortas="removes one or more variables from the multimode environment">
removes one or more variables from the multimode environment &mdash; unset
</primary></indexterm><refname>unset</refname><refpurpose>removes one or more
variables from the multimode environment</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><?Pub Caret><command>unset</command><arg>name <replaceable>[name]
</replaceable>*</arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>unset</command> command removes one or more variables you
set for the multimode environment. The variables and their associated values
will no longer exist in the environment.</para>
</refsect1>
<refsect1><title>OPERANDS</title>
<variablelist termlength="narrow">
<varlistentry><term><replaceable>name </replaceable></term><listitem><para>
Environment variable to be removed.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using <command>unset</command> to remove environment variables</title>
<screen>asadmin> <userinput>export AS_ADMIN_HOST=bluestar AS_ADMIN_PORT=8000 AS_ADMIN_USER=admin
</userinput>
asadmin> <userinput>export AS_ADMIN_PREFIX=server1.jms-service</userinput>
asadmin> <userinput>export</userinput>
AS_ADMIN_USER = admin
AS_ADMIN_HOST = bluestar
AS_ADMIN_PREFIX = server1.jms-service
AS_ADMIN_PORT = 8000
asadmin> <userinput>unset AS_ADMIN_PREFIX</userinput>
asadmin> <userinput>export</userinput>
AS_ADMIN_USER = admin
AS_ADMIN_HOST = bluestar
AS_ADMIN_PORT = 8000

</screen>
<para>Using the <command>export</command> command without the argument lists
the environment variables that are set. Notice the <filename>AS_ADMIN_PREFIX
</filename> is not in the environment after running the <command>unset</command>
command.</para>
</example>
</refsect1>
<refsect1><title>EXIT STATUS</title>
<variablelist termlength="narrow">
<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="export-1"><citerefentry><refentrytitle>export</refentrytitle>
<manvolnum>1</manvolnum></citerefentry></link>, <link linkend="multimode-1"><citerefentry>
<refentrytitle>multimode</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000003274>
