MISSION CONTROL: How to Remove a Broken Service in Mission Control

MISSION CONTROL: How to Remove a Broken Service in Mission Control

AuthorFullName__c
Patrick Russell
articleNumber
000004364
ft:sourceType
Salesforce
FirstPublishedDate
2018-12-11T21:47:59Z
lastModifiedDate
2024-03-10T07:47:44Z
VersionNumber
5

In Mission Control, you can usually click the X button to delete a service. However, if there's a problem with your downstream service (e.g., a system wipe or deletion), the GUI and REST API will not allow the deletion.
To fix this, you'll need to get into the MongoDB and erase the bad service that's causing you problems. These following steps use the Mongo shell, which comes installed with Mission Control:


#Log onto the Mission Control MongoDB
mongo –port 27017 -u "mission_platform" -p "password" –authenticationDatabase "mission_platform"
#The services are in the "mission_platform" database
#Use "show databases" to confirm it exists
use mission_platform
#List all services
db.instances.find()
#Identify the service by it's URL or name, then copy the _id
#Run a db.instances.remove command using the format below
db.instances.remove({"_id" : "b4570f6a-6123-4462-8904-feca7a258516"})


After running the remove command, the troublesome service will be deleted permanently from Mission Control. These actions do not require a restart.

Published: Dec. 11, 2018
Last updated: Feb. 24, 2021

Keywords: Mission Control, broken service