> ## 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/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/deletedatasheetrowcommand-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=e2775fae297f31fa657ab80bd3b5f75b" alt="删除数据表格数据指令参数面板" width="648" height="302" data-path="helpcenter/commands/datatable/images/deletedatasheetrowcommand-01.png" />

    | 参数       | 说明                                      |
    | -------- | --------------------------------------- |
    | **数据表格** | 选择一个获取到的或者通过"导入Excel/CSV至数据表格"创建的数据表格对象 |
    | **删除方式** | 删除所有数据 / 删除指定行                          |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/deletedatasheetrowcommand-02.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=1dfa6bb0057e07885c054258603d012a" alt="删除数据表格数据使用示例 - 流程搭建" width="848" height="239" data-path="helpcenter/commands/datatable/images/deletedatasheetrowcommand-02.png" />

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

使用【**删除数据表格数据**】指令将数据表格1的所有数据删除

使用【**按行写入内容至数据表格**】指令在数据表格1中追加一行数据：八，爪，鱼

读取数据表格单元格(1,1)中的内容，读取成功

读取数据表格单元格(1,2)中的内容，读取成功

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/deletedatasheetrowcommand-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=53a4b306ed145bd9ae34d10d00b89971" alt="删除数据表格数据使用示例 - 效果展示" width="844" height="245" data-path="helpcenter/commands/datatable/images/deletedatasheetrowcommand-03.png" />

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