Claude Platform Docs

删除消息批次

$ ant beta:messages:batches delete
DELETE/v1/messages/batches/{message_batch_id}

删除消息批次。

消息批次只有在处理完成后才能删除。如果您想删除正在处理中的批次,必须先将其取消。

在我们的用户指南中了解有关 Message Batches API 的更多信息

Parameters
--message-batch-id: string

ID of the Message Batch.

--beta: optional array of AnthropicBeta

Optional header to specify the beta version(s) you want to use.

Returns
beta_deleted_message_batch: object{ id, type }
id: string

ID of the Message Batch.

type: "message_batch_deleted"

Deleted object type.

For Message Batches, this is always "message_batch_deleted".

删除消息批次
ant beta:messages:batches delete \
  --api-key my-anthropic-api-key \
  --message-batch-id message_batch_id
Returns Examples
Response 200
{
  "id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",
  "type": "message_batch_deleted"
}