Delete Service
Delete a service. The request creates a delete operation, asks the provisioner to tear the service down and moves the service to delete_pending. The teardown itself continues asynchronously.
A 202 means the delete was accepted and started. A non 2xx means nothing was torn down.
Poll the service status to follow delete_queued, deleting and deleted, or delete_failed on failure.
For GitLab sourced services LocalOps also removes the project webhook and deploy tokens it created.
Authorizations
Your account API token, sent as Authorization: Bearer <api_token>. Owners and admins can read the token from the LocalOps console.
Path Parameters
The unique identifier of the environment
The unique identifier of the service
Response
Delete accepted and started. This response is not wrapped in the data envelope.