---
title: "Delete services"
method: POST
path: "/environment/{environmentId}/service/delete"
tags: ["Environment Actions"]
---

# Delete services

`POST /environment/{environmentId}/service/delete`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/environment/{environmentId}/service/delete`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/environment/:environmentId/service/delete/post.ts> (a function with typed inputs; its response is checked against the schema)

Delete selected services

## Path parameters

- `environmentId` string, uuid, required

## Request body

- EnvironmentServiceIdsAllRequest
  - `application_ids` string[]
  - `container_ids` string[]
  - `database_ids` string[]
  - `job_ids` string[]
  - `helm_ids` string[]
  - `terraform_ids` string[]

## Response `200`

Services have been triggered to be deleted

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found
- `409`: Operation is in progress

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
