飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions105

云文档 → 删除块

AI-generated

Summary

Delete a specific block within a Feishu cloud document by providing the document ID, the block ID to delete, and optional parameters for document version and idempotency token.

Inputs

  • 凭证类型 (required) — Choose between user-level or application-level credentials to authenticate the request.
  • 文档 ID (required) — Unique identifier of the cloud document containing the block to delete.
  • 父块 ID (required) — Unique identifier of the parent block to delete from the document.
  • 文档版本 — The document version to operate on; -1 uses the latest version.
  • 操作的唯一标识 — An idempotency token matching a previous client_token to perform a reliable update; leave empty to initiate a new delete request.
  • Options — Optional settings including batching to control concurrency and intervals between requests, and request timeout in milliseconds.

Output shape

a list of execution results corresponding to input items, each containing success or error information for the delete operation

Supports batch processing with configurable concurrency and timeout. Errors per item are returned when 'continueOnFail' is enabled; otherwise, execution halts on the first error.

Examples

Example 1: Deleting blocks from multiple documents concurrently

Provide an array of items each specifying '文档 ID' and '父块 ID'. Enable 'Batching' option to control how many deletes run in parallel and interval delay between batches.

Example 2: Idempotent retry of a block delete operation

Set '操作的唯一标识' (client_token) to a value returned from a prior request to safely retry deleting the same block without duplication.

Links

Discussion