---
title: "DeleteService"
method: POST
path: "/gitpod.v1.EnvironmentAutomationService/DeleteService"
tags: ["gitpod.v1.EnvironmentAutomationService"]
---

# DeleteService

`POST /gitpod.v1.EnvironmentAutomationService/DeleteService`

Deletes an automation service. This call does not block until the service is deleted.
 If the service is not stopped it will be stopped before deletion.

 Use this method to:
 - Remove unused services
 - Clean up service configurations
 - Stop and delete services

 ### Examples

 - Delete service:

   Removes a service after stopping it.

   ```yaml
   id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   force: false
   ```

 - Force delete:

   Immediately removes a service.

   ```yaml
   id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   force: true
   ```

## Request body

- GitpodV1DeleteServiceRequest
  - `force` boolean
  - `id` string, uuid

## Response `200`

Success

- GitpodV1DeleteServiceResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/versions/44d50c2ac284/schema)
