2.18.3 delete-custom-resource
Deletes a custom resource.
Synopsis
asadmin [asadmin-options] delete-custom-resource [--help] [--target target] jndi-name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-custom-resource subcommand removes a custom resource.
This subcommand is supported in remote mode only.
Precondition
DAS has to be in a running state.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --target target
-
Specifies the target from which you are deleting the custom resources.
Type: String
The following values can be specified:
-
server
Deletes the resource for the default server instance. This is the default value.
-
domain
Deletes the resource for the domain.
-
cluster-name
Deletes the resource for every server instance in the cluster.
-
instance-name
Deletes the resource for a particular server instance.
Default value: server
-
- jndi_name
-
Specifies the JNDI name of the resource.
Type: String
The following values can be specified:
-
JNDI name of the resource
Default value: N/A
-
Examples
The following example deletes a custom resource named mycustomresource on the server instance instance1.
asadmin delete-custom-resource --target instance1 mycustomresource
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |