Warning: Removing a Gateway will leave any Compute Nodes and associated project unaccessible. Be sure these have been moved before proceeding.
To remove a Gateway that is no longer needed as part of your Anaconda Enterprise Notebook installation you can do so in the Admin section of the website user interface. Login with the administrator account(default is aen_admin). Select the Admin menu item in the upper left. From here you can select the Data Centers tab, these are the Gateways.
Select the name of the Gateway you wish to remove and in the Gateway's information page you can select the Remove button.
This does not uninstall the actual Gateway software from your server but disassociates it from your installation. To uninstall the Gateway software from your server you can follow the instructions found here for Uninstalling a Gateway Node.
Removing a Gateway that cannot be accessed in the Admin section:
If you have already uninstalled the Gateway software but it still shows in the Admin > Data Centers tab you may need to remove it from the database. In this scenario you may receive a 500 error when selecting the Gateway's name. If you are receiving an error accessing the Gateway for other reasons you should not jump to deleting the Gateway. Please contact Anaconda Enterprise Support for assistance.
To remove the Gateway first take note of the name in the Admin > Data Centers tab. We will search by this name to get the Gateway's "_id" so that we can safely remove it without accidentally removing other Gateways.
use wakari
db.oauth.clients.find( { "client_name" : "" } ).pretty()
Look at the top for the "_id". We will use the ObjectId to remove it.
db.oauth.clients.remove( { "_id" : ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx") } )
exit
This should have removed any reference to the Gateway from the Admin > Data Centers panel.