In the SDDC Manager UI > License tab, the option to "Remove" the license is greyed out.
The license has already expired.
Another active license is already assigned to the ESXi host.
VMware SDDC Manager 4.x
VMware SDDC Manager 5.x
"Remove" option is greyed out for the ESXi host license as it is reported to be in use for a few CPUs in the SDDC Manager UI.
Removed the expired license from the SDDC manager using API calls
Get /v1/license-keys
GET /v1/license-keys/{key}
DELETE /v1/license-keys/{key}