After removing one of the site system roles in SCCM and we tried to delete the server from the console we may get error “The server cannot be deleted because it contains the following site system roles: Component server”
In ideal scenario, the component server should be removed as soon as a site system role should be uninstalled. However, sometimes even we wait for few hours it won’t get removed.
If component server is still there after waiting for few hours, we can get that removed by restarting SMS_SITE_COMPONENT_MANAGER service from services.
Once SMS_SITE_COMPONENT_MANAGER is restarted, the error message will disappear and we able to delete the server.