Hi, @ComputerHabit
Removing healthsets associated with retired Exchange servers can be tricky because there isn't a built-in command to remove them directly.
You can try the following methods.
First, make sure that the Exchange server has been properly removed.
If there are any server-specific monitoring overrides, you can try removing them using the following command:
Remove-ServerMonitoringOverride -Identity "<HealthSet><MonitorName>" -Server "RetiredServerName"
Similarly, if there are global monitoring overrides, you can delete them using the following command:
Remove-GlobalMonitoringOverride -Identity "<HealthSet><MonitorName>"
Ensure that any references to the decommissioned server are removed from Active Directory. After you make these changes, restart the Microsoft Exchange Health Manager service to ensure that the changes take effect.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".