Removes the server or virtual machine from the list of registered servers. You can reregister the instance again at any time. If you don't plan to use Run Command on the server, we suggest uninstalling SSM Agent first.
ssm_deregister_managed_instance(InstanceId)
[required] The ID assigned to the managed instance when you registered it using the activation process.
svc$deregister_managed_instance( InstanceId = "string" )