---
title: "Clean failed jobs within an environment"
method: POST
path: "/environment/{environmentId}/cleanFailedJobs"
tags: ["Environment Actions"]
---

# Clean failed jobs within an environment

`POST /environment/{environmentId}/cleanFailedJobs`

## Request

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

## Request body

- object
  - `job_ids` string[]

## Response `200`

OK

- object
  - `clean_job_ids` string[]
  - `clean_kubernetes_jobs` string[]

---

[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)
