Hi,
Hope everything is going well.
1,Mostly, we need to wait for some time so that the role can be removed. It could be from 6 to 12 hours. If this is still an issue, then we really need to troubleshoot this.
2,Similar threads for your reference. One thing needs to confirm: removed all the roles apart from Component Server and Site System, then restart the SMS_SITE_COMPONENT_MANAGER service.
Error while removing the Component Server role
Unable to remove the Component Server Site System Role
Please note: The links are not from Microsoft, just for your reference.
Should you have any questions or concerns, please do feel free to contact me.
Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.