Hi,
Since the CA role was already removed , you can refer to the steps from step 6 to do a ca reference cleanup.
https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/decommission-enterprise-certification-authority-and-remove-objects
Best Regards,