当应用不需要再运行时,您可以删除应用下面的环境和删除应用。

删除环境

在对环境进行删除操作时需要先终止环境。

$ wpctl env:terminate
[OK] Terminate environment name demo-test-env (1s)

-- Check events --
2019-05-05 08:16:36 PM: Start to terminate deployment, change Id is wc-5cced4243b331c3b5592551a
2019-05-05 08:16:37 PM: Start to terminate application on instance i-wz98cfp8hf0jct9pyfxy
2019-05-05 08:16:43 PM: Success to terminate application on instance i-wz98cfp8hf0jct9pyfxy
2019-05-05 08:16:44 PM: Successfully deleted monitor group
2019-05-05 08:16:44 PM: Success to terminate platform services
2019-05-05 08:16:46 PM: Start to reduce 1 ECS instances
2019-05-05 08:17:06 PM: Successfully deleted ECS instance i-wz98cfp8hf0jct9pyfxy
2019-05-05 08:17:08 PM: Untied VSwitches vsw-wz9bflpiecxeotsgetdfl successfully
2019-05-05 08:17:08 PM: Untied VPC vpc-1kgkcouha successfully
2019-05-05 08:17:08 PM: webx.wam.change.terminate.success

Change finished, apply success

$ wpctl env:delete we-5cced1e63b331c3b55925475
 (1s)
[OK] Delete environment name demo-test-env (1s)
$ wpctl env:info

No env in this app:demo-test

删除应用

应用删除前需要确定应用下的所有环境都已经处于释放状态。

$ wpctl app:delete --help
delete the app
Usage:
  wpctl app:delete Id/name
Sample:
  wpctl app:delete app-demo
Use `app:delete --help` for more information.