> ## 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.

# 移除Cookie

## 指令说明

**描述：** 移除指定的或全部Cookie。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-cookie-del-01.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=d43496fc32e5706b0e22f4e20c1290e7" alt="移除Cookie指令参数面板" width="660" height="382" data-path="helpcenter/commands/web-automation/images/web-cookie-del-01.png" />

    | 参数              | 说明                                   |
    | --------------- | ------------------------------------ |
    | **网页对象**        | 选择要移除Cookie的网页对象                     |
    | **移除方式**        | 下拉选择：移除指定名称Cookie、移除全部Cookie         |
    | **Cookie Name** | 当移除方式为"移除指定名称Cookie"时，输入要移除的Cookie名称 |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-cookie-del-02.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=2f9a7fe9ebf688b683aaa99c78e79661" alt="移除Cookie使用示例 - 流程搭建" width="957" height="144" data-path="helpcenter/commands/web-automation/images/web-cookie-del-02.png" />

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

使用【获取已打开的网页对象】指令获取指定浏览器上已打开的所有网页并根据标题匹配选择已打开的网页

使用【移除Cookie】移除网页对象上的所有Cookie，即网页退出了登录状态

### 效果展示

指定的Cookie或全部Cookie被成功移除。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-cookie-del-03.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=7f7623d7a5e42310c84369d92172689d" alt="移除Cookie使用示例 - 效果展示" width="956" height="197" data-path="helpcenter/commands/web-automation/images/web-cookie-del-03.png" />

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