Articles in this section

How to remove a remote service in CalderaConnect?

You can remove:

  • One registered service, for example if it was added by mistake or if you no longer want to submit or track jobs through it.
  • All registered services to reset your configuration.

 

Remove a remote service

Replace {serviceId} with the ID of the service you want to remove. You can retrieve service IDs using GET /v1/services.

DELETE /v1/services/{serviceId}
curl --request DELETE \
 --url 'http://localhost:12340/v1/services/{serviceId}'

 

Select a specific connection

Starting with CalderaConnect 2.2.0, you can use the optional host and port query parameters to identify the connection to remove. This is useful when several connections share the same service ID.

Replace {host} and {port} with the registered host and port of the connection. These values can be retrieved using GET /v1/services.

curl --request DELETE \
 --url 'http://localhost:12340/v1/services/{serviceId}?host={host}&port={port}'

Both parameters are optional. You can provide one or both, as long as the service ID and the parameters supplied identify a single connection. If the service ID already identifies one connection, you can omit them.

 

Returned Data

If the service is removed successfully, the API returns 200 OK without a response body.

The API can also return:

  • 403 Forbidden if you try to remove the CalderaConnect service itself.
  • 404 Not Found if no registered service matches the supplied service ID and parameters.
  • 409 Conflict if more than one connection matches the request. No connection is removed. Specify the host and/or port needed to identify a single connection, then try again.

To display the HTTP response status when using curl, add the --include option to your request.

 

Remove all registered services

  Info

The bulk delete route unregisters all services except the Caldera REST API service itself.

DELETE /v1/services
curl --request DELETE \
 --url 'http://localhost:12340/v1/services'

 

Was this article helpful?
0 out of 0 found this helpful