Uninstalling Multiple MID Servers on a Linux HostIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Multiple MID Servers are installed on a Linux host and need to be uninstalled. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Any Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Note:This uninstallation procedure applies to environments where MID servers were installed using the installer ZIP file and the installer.sh script. Uninstalling a second MID Server Stop the second MID server that is currently running:Run either of the following commands: ./mid.sh stop or systemctl stop <second MID server service name> Run the removal script for the second MID server: ./mid.sh remove Example output when successful: Detected Linux: <Long name of the second MID server service> is not running. Removing the <Long name of the second MID server service> daemon from systemd... Removed /etc/systemd/system/multi-user.target.wants/<second MID server service name>. Remove the service (only if it was not removed automatically): sudo systemctl disable <second MID server service name> sudo rm /etc/systemd/system/<second MID server service name> (Option) Delete only the residual directory used by the second MID server: sudo rm -rf /opt/servicenow/midserver2 Note: Delete the remaining directories only if you intend to completely uninstall the MID Server. Adjust the directory path according to your installation environment.If this is the last remaining MID server, refer to the procedure below. Uninstallation Procedure for a Single MID Server Installed on a Linux Host Stop the running MID server:Run either of the following commands: ./stop.sh or systemctl stop <MID server service name> Run the uninstall script: ./uninstall.sh Example output when successful: Uninstalling MID Server RPM package : agent-27.1.0.11-19008.el7.x86_64 Preparing packages... Running 'mid.sh remove' to uninstall MID server Detected Linux: <Long name of the MID server service> is not running. Removing the <Long name of the MID server service> daemon from systemd... Removed /etc/systemd/system/multi-user.target.wants/<MID server service name>. agent-27.1.0.11-19008.el7.x86_64 Remove the service (only if it was not removed automatically): sudo systemctl disable <MID server service name> sudo rm /etc/systemd/system/<MID server service name> (Option) Delete the residual directory: sudo rm -rf /opt/servicenow/midserver Note: Delete the remaining directories only if you intend to completely uninstall the MID Server. Adjust the directory path according to your installation environment.