Use the delete-auth-realm subcommand in remote mode to delete an existing authentication realm.
Ensure that the server is running.
Remote subcommands require a running server.
List realms by using the list-auth-realms(1) subcommand.
If necessary, notify users that the realm is being deleted.
Delete the realm by using the delete-auth-realm(1) subcommand.
To apply your changes, restart GlassFish Server. See To Restart a Domain.
This example deletes an authentication realm named db.
asadmin> delete-auth-realm db Command delete-auth-realm executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help delete-auth-realm at the command line.