<!--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="unset-1">
<!-- @(#)unset.1 1.9 07/04/25 SMI; -->
<refmeta><refentrytitle>unset</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>unset</primary></indexterm><indexterm>
<primary>
removes one or more variables from the multimode environment</primary></indexterm><refname>unset</refname><refpurpose>removes one or more
variables from the multimode environment</refpurpose></refnamediv>
<refsynopsisdiv><title></title>
<synopsis><command>unset</command>  [name <replaceable>[name]</replaceable>*]</synopsis></refsynopsisdiv>
<refsect1 role="description"><title></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 role="operands"><title></title>
<variablelist termlength="narrow">
<varlistentry><term><replaceable>name </replaceable></term><listitem><para>
Environment variable to be removed.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 role="examples"><title></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 role="exit-status"><title></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 role="see-also"><title></title>
<para><olink targetdoc="ASREFMAN" targetptr="export-1">export(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="multimode-1">multimode(1)</olink></para>
</refsect1>
</refentry>
<?Pub *0000003274>
