---
id: "zh/api-post-nd-api-file-remove-share-participant"
title: "删除分享参与人"
language: "zh"
description: "POST /nd/api/file/remove_share_participant：删除分享参与人 接口说明，包含路径、方法、参数和返回信息。"
canonical_url: "https://www.babel.cc/public/babelwiki/zh/api-post-nd-api-file-remove-share-participant.html"
markdown_url: "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-file-remove-share-participant.md"
alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-file-remove-share-participant.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-file-remove-share-participant.md"}
reading_note: "文档记录不等于当前部署能力；以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明，勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts."
---

# 删除分享参与人

`POST /nd/api/file/remove_share_participant`

## POST 请求体参数

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `file_id` | `string` | 必填；文件 ID |
| `babelshare_ids` | `string[]` | 必填；待移除分享参与记录 ID 的数组，元素取自 [获取所有分享参与人](https://www.babel.cc/public/babelwiki/zh/api-get-nd-api-share-share-participants.html) 返回的 `users[].babelshareId`。不要用 `participantId` 替代。 |

JSON 请求示例（标识均为示例值）：

```json
{
  "file_id": "<FILE_ID>",
  "babelshare_ids": ["1001", "1002"]
}
```

## 返回信息

原文列出的字段：`code`, `success`.

先用同一文件的 `file_id` 查询参与人，再将待移除记录的 `babelshareId` 放入数组，保留字符串类型。

## 调用说明

使用 `Authorization: Bearer <access_token>`，POST 请求体采用 JSON。先校验 HTTP 状态，再检查业务结果。

[认证说明](https://www.babel.cc/public/babelwiki/zh/developer-api-auth.html) · [API 概览](https://www.babel.cc/public/babelwiki/zh/developer-api-overview.html)
