---
title: "Delete async operation by ID"
method: DELETE
path: "/async_tasks/{task_id}"
tags: ["Async Tasks"]
---

# Delete async operation by ID

`DELETE /async_tasks/{task_id}`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/async_tasks/{task_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/async_tasks/:task_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an async operation by ID. Returns the task id and other related data.

## Path parameters

- `task_id` integer, required

## Headers

- `Accept` 'application/vnd.nexla.api.v1+json' | 'application/json': Setting to `application/vnd.nexla.api.v1+json` is recommended.

## Response `200`

Success

## Other responses

- `400`: Bad Request (e.g. task is running)
- `403`: Forbidden
- `404`: Not Found

---

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