75/461

## delete-config

deletes an existing named configuration

Synopsis

    delete-config [--help] configuration-name

Description

The `delete-config` subcommand deletes an existing named configuration from the configuration of the domain administration server (DAS). You can delete a configuration only if no GlassFish Server instances or clusters refer to the configuration. A standalone configuration is automatically deleted when the instance or cluster that refers to it is deleted. You cannot delete the `default-config` configuration that is copied to create standalone configurations.

This subcommand is supported in remote mode only.

Options

`--help`
`-?`

  Displays the help text for the subcommand.

Operands

configuration-name

  The name of the configuration that you are deleting.

Examples

Example 1 Deleting a Named Configuration

  This example deletes the named configuration `pmdconfig`.

      asadmin> delete-config pmdconfig

      Command delete-config executed successfully.

Exit Status

0

  command executed successfully

1

  error in executing the command

See Also

copy-config(1), list-configs(1)

asadmin(1M)

configuration(5ASC)