Tasks

Delete several task results

Delete the generated files for up to 500 tasks in one call. Same semantics as DELETE /v1/tasks/{id}/result, applied per task: tasks that are still running or waiting on the result cache are listed in failed and left untouched, and ids that are not yours are listed in not_found.

post/v1/tasks/results/bulk-delete

Request

  • Base URL: https://api.hotapi.ai
  • URL: https://api.hotapi.ai/v1/tasks/results/bulk-delete
  • Auth: HTTP bearer

Request body

idsstring[] required

Task ids whose results should be deleted. Ids outside your organization are reported in not_found and nothing happens to them.

Response

Outcome of deleting several task results in one call.

deleted_countinteger required
already_deleted_countinteger required
not_foundstring[] required

Task ids that do not belong to this organization.

failedstring[] required

Task ids whose deletion errored. Nothing was recorded for them, so retrying the same call is safe.

Example response

{
  "data": [
    {
      "id": "task_8sd9f7aQ2",
      "status": "deleted"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.