Skip to main content
POST
删除知识文件

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json

要删除的知识文件。

rel_path
string
必填

文件相对于知识根目录的路径。

pack_id
string

知识 ID;默认为调用者的账户范围知识。

force
boolean

即使其他知识文件仍引用该文件也强制删除;此时引用方会以警告形式返回,而不再阻止删除。

响应

成功

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

本次请求的唯一 ID,与 Flashcat-Request-Id 响应头一致。反馈问题时请携带该 ID。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

响应结构中的错误 payload,仅在非 2xx 响应时出现。

data
object

删除结果;无警告时为空对象。