| title | Remove 命令 |
|---|---|
| description | Remove 命令 |
| position | 3 |
| category | 构建&部署 |
remove 命令是对已经部署的资源进行移除的操作。
当执行命令remove -h/remove --help命令时,可以获取帮助文档。
| 参数全称 | 参数缩写 | Yaml模式下必填 | Cli模式下必填 | 参数含义 |
|---|---|---|---|---|
| region | - | 选填 | 必填 | 地区,取值范围:cn-hangzhou, cn-beijing, cn-beijing, cn-hangzhou, cn-shanghai, cn-qingdao, cn-zhangjiakou, cn-huhehaote, cn-shenzhen, cn-chengdu, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1, eu-west-1, us-west-1, us-east-1, ap-south-1 |
| namespace-id | - | 选填 | 选填 | 命名空间id |
| application-name | - | 必填 | 必填 | 应用名 |
| assume-yes | y | 选填 | 选填 | 在交互时,默认选择y |
- 有资源描述文件(Yaml)时,可以直接执行
s remove删除线上资源; - 纯命令行形式(在没有资源描述 Yaml 文件时),需要根据需求,指定服务名信息,例如
s cli sae remove --region cn-hangzhou --namespace-id cn-hangzhou --application-name test。
使用该命令时,推荐配置系统策略:AliyunFCReadOnlyAccess