> For the complete documentation index, see [llms.txt](https://smallso.gitbook.io/tencent-cloud-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/other-products/class-and-method/proxies/remove-proxy-server.md).

# remove\_proxy\_server 方法

## 简要

将一个已添加的代理服务器配置从代理服务器组中移除。

```python
def remove_proxy_server(self,
    proxy_name: str
)
```

{% hint style="danger" %}
请注意，移除正在使用的代理服务器将引发 OccupiedError 异常。
{% endhint %}

## 参数

该方法具有以下参数，其参数、参数类型和参数描述如下：

| 参数          | 类型  | 必选 | 描述           |
| ----------- | --- | -- | ------------ |
| proxy\_name | str | 是  | 已添加的代理服务器名称。 |

## 返回值

该方法没有返回值。

## 异常

该方法可能会主动引发以下异常类型：

#### ValueError

参数值或类型不符合预期。

#### OccupiedError

正在移除的代理服务器配置正在使用。

## 适用于

#### Tencent Cloud SDK for Python

基础软件包：tencent-cloud-sdk-core >= 0.1.1
