---
title: "批量删除会话"
method: DELETE
path: "/sessions/batch"
tags: ["会话"]
---

# 批量删除会话

`DELETE /sessions/batch`

根据ID列表批量删除对话会话，或设置 delete_all=true 删除当前空间的所有会话

## Request body

- InternalHandlerSessionBatchDeleteRequest
  - `delete_all` boolean
  - `ids` string[]

## Response `200`

删除结果

- object

## Other responses

- `400` — 请求参数错误

## Changes

> 62 revisions in range; 10 could not be searched.

- **2026-02-26** `3762795e29b6` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/sessions/batch/delete.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
