removes a JavaMail session resource
delete-javamail-resource [--help] [--target target] jndi_name
delete-javamail-resource subcommand removes the specified JavaMail session resource. Ensure that you remove all references to this resource before running this subcommand.
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
This option specifies the target from which you are deleting the JavaMail session resource. Valid values are:
Deletes the resource from the default server instance. This is the default value.
Deletes the resource from the domain.
Deletes the resource from every server instance in the cluster.
Deletes the resource from a particular server instance.
The JNDI name of the JavaMail session resource to be deleted.
This example deletes the JavaMail session resource named
asadmin> delete-javamail-resource mail/MyMailSession Command delete-javamail-resource executed successfully.
subcommand executed successfully
error in executing the subcommand