If an application is no longer required, you can delete the environments of the application and delete the application.

Delete an environment

You must stop an environment before deleting it.

$ 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

Delete an application

Before deleting an application, ensure that all environments of the application are released.

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