---
title: remove_subgraph
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0727.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0727.html
indexId: b20187dad366fdf351ea94a709365362126ade810d51c58d7c985f828b1ee0e472
---
# remove_subgraph

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 功能说明

根据名称移除子图。


#### 函数原型

```
remove_subgraph(name: str) -> None
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| name | 输入 | 子图名称，string类型。 |


#### 返回值说明

无


#### 约束说明

- 如果name不是字符串，抛出TypeError。
- 如果移除失败，抛出RuntimeError。
