Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Reference Manual

## unset(1)

NAME | SYNOPSIS | DESCRIPTION | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

#### NAME

unset– removes one or more variables from the multimode environment

#### SYNOPSIS

`unset` [env_var*]

#### DESCRIPTION

Removes one or more variables you set for the multimode environment. The variables and their associated values will no longer exist in the environment.

#### OPERANDS

env_var

  environment variable to be removed.

#### EXAMPLES

##### Example 1 Using `unset` to remove environment variables

    asadmin> export AS_ADMIN_HOST=bluestar AS_ADMIN_PORT=8000 AS_ADMIN_USER=admin
    asadmin> export AS_ADMIN_PREFIX=server1.jms-service
    asadmin> export
    AS_ADMIN_HOST=bluestar
    AS_ADMIN_PORT=8000
    AS_ADMIN_USER=admin
    AS_ADMIN_PREFIX=server1.jms-service
    asadmin> unset AS_ADMIN_PREFIX
    asadmin> export
    AS_ADMIN_HOST=bluestar
    AS_ADMIN_PORT=8000
    AS_ADMIN_USER=admin

Using the `export` command without the argument lists the environment variables that are set. Notice the `AS_ADMIN_PREFIX` is not in the environment after running the `unset` command.

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### SEE ALSO

export(1), multimode(1)

J2EE SDK 1.4 Last Revised 31 Jan 2005

NAME | SYNOPSIS | DESCRIPTION | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates