Use the delete-http-listener subcommand or the delete-network-listener subcommand in remote mode to delete an existing HTTP listener. This disables secure communications for the listener.
Ensure that the server is running.
Remote subcommands require a running server.
List HTTP listeners by using the list-http-listeners(1) subcommand.
Delete an HTTP listener by using the delete-http-listener(1) or delete-network-listener(1) subcommand.
To apply your changes, restart GlassFish Server.
See To Restart a Domain.
This example deletes the HTTP listener named sampleListener:
asadmin> delete-http-listener sampleListener Command delete-http-listener executed successfully. |
You can also view the full syntax and options of the subcommand by typing asadmin help delete-http-listener or asadmin help delete-network-listener at the command line.