> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 删除字段

## 指令说明

**描述：** 删除指定数据表中的某个字段

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-03.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=b326ee3b01e9a23368fbe109d4d3e3ea" alt="删除字段指令参数面板" width="660" height="471" data-path="helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-03.png" />

    | 参数          | 说明                                 |
    | ----------- | ---------------------------------- |
    | **多维表格对象**  | 请选择通过“连接飞书多维表格”指令产生的多维表格对象         |
    | **数据表定位方式** | 选择定位方式，可以通过“名称定位”或“ID定位”来指定待操作的数据表 |
    | **数据表名称**   | 请输入要删除字段的数据表名称（数据表定位方式选择名称定位时）     |
    | **数据表ID**   | 请输入要删除字段的数据表ID（数据表定位方式选择ID定位时）     |
    | **字段定位方式**  | 选择定位方式，可以通过名称定位或ID定位来指定待操作的字段      |
    | **字段名称**    | 请输入要待操作的字段名称（字段定位方式选择名称定位时）        |
    | **字段ID**    | 请输入要待操作的字段ID（字段定位方式选择ID定位时）        |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-01.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=f207af8bff26def2a30e5e478b732061" alt="删除字段使用示例" width="1043" height="389" data-path="helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-01.png" />

**该流程执行逻辑：**

使用【获取飞书访问凭证】获取飞书访问凭证，并将其保存至飞书访问凭证中

使用【连接飞书多维表格】连接到指定的飞书多维表格，并将其保存至飞书多维表格对象中

使用【获取字段】用名称定位的方式获取飞书多维表格对象指定数据表中的所有字段，并将其保存至字段列表中

使用【打印日志】将原始的字段列表打印输出，输出内容可在\[运行日志]区查看

使用【删除字段】在数据表中删除一个字段，字段名称为数量

使用【获取字段】用名称定位的方式获取飞书多维表格对象指定数据表中的所有字段，并将其保存至字段列表中

使用【打印日志】将删除字段后的字段列表打印输出，输出内容可在\[运行日志]区查看

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-02.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=52b4c7f55c3f774638566a41cbe57637" alt="删除字段效果展示" width="1033" height="178" data-path="helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-04.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=9fe0fa941292069090ddcecf4b05394c" alt="删除字段效果展示" width="1315" height="90" data-path="helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-05.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=756dc31d8563ca4bb7dc734da23e1ade" alt="删除字段效果展示" width="1072" height="76" data-path="helpcenter/commands/feishu/images/deletelarkbitablefieldcommand-05.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
