Remove a service instance from the registry immediately.

Request

curl -X POST http://localhost:8080/unregister \
  -H "Content-Type: application/json" \
  -d '{"name":"ms.auth","instance_id":"10.0.0.5:3001"}'

Body

FieldTypeRequiredDescription
namestringyesService name
instance_idstringyeshost:port of the instance

Response

{"ok":true}

The instance is removed from the registry. Future discover requests for this service will not return this instance.