# db config allow-rules clear

> db config allow-rules clear — Turso 文档。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/cli/db/config/allow-rules/clear/
> Upstream Source (MIT): https://docs.turso.tech/cli/db/config/allow-rules/clear
> Language: zh-CN

---
清除数据库的访问允许规则，从而允许来自任意来源的连接。

```bash
turso db config allow-rules clear <database-name> [flags]
```

在不指定任何标志的情况下，IP 列表和 AWS VPC 端点列表都会被清除。使用 `--ips` 或 `--aws-vpcs` 可仅清除其中一个列表。

## 标志

| 标志 | 描述 |
| - | - |
| `--ips` | 仅清除允许的 IP 列表。 |
| `--aws-vpcs` | 仅清除允许的 AWS VPC 端点 ID 列表。 |

## 示例

### 清除所有规则

```bash
turso db config allow-rules clear my-db
```

### 仅清除 IP 列表

```bash
turso db config allow-rules clear my-db --ips
```

### 仅清除 VPC 列表

```bash
turso db config allow-rules clear my-db --aws-vpcs
```
