---
title: "Delete Task"
method: DELETE
path: "/v2/gt-mage/tasks/{id}"
tags: ["GTMage-2.5"]
---

# Delete Task

`DELETE /v2/gt-mage/tasks/{id}`

## Request

- Base URL: `https://genaipro.io/api`
- URL: `https://genaipro.io/api/v2/gt-mage/tasks/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/genaipro/apis/genaipro-api/docs/v2/gt-mage/tasks/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove an image task (any of the three models) from your history. Does **not** refund credits.
> **Rate limit:** 30 requests/minute

## Path parameters

- `id` string, required

## Response `200`

Deleted

## Other responses

- `404`: Task not found or does not belong to the authenticated user
- `409`: Sunburst / Flare task is still processing — delete it after it finishes
- `429`: Rate limit exceeded

## Changes

- **2026-10-29** `8e065c159192`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/genaipro/apis/genaipro-api/changes/v2/gt-mage/tasks/:id/delete.md)

---

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