---
title: "Delete multiple scheduled tasks for any user (admin only)."
method: POST
path: "/admin/scheduled_tasks/batch_delete"
tags: ["Scheduled Tasks"]
---

# Delete multiple scheduled tasks for any user (admin only).

`POST /admin/scheduled_tasks/batch_delete`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/admin/scheduled_tasks/batch_delete`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/admin/scheduled_tasks/batch_delete/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ScheduledTaskBatchDeleteRequest
  - `task_ids` string[], required

## Response `200`

OK

- ScheduledTaskBatchDeleteResponse
  - `status` string
  - `count` integer

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `default`: Unexpected error

---

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