uninstall


Get the latest docs

You are looking at documentation for an older release. Not what you want? Go to the current release documentation.

The cfy uninstall command is used to uninstall an application using a Cloudify manager without having to manually go through the process of executing working, deleting a deployment and deleting a blueprint.

Usage: cfy uninstall [options]

Uninstall an application.

Optional flags

  • --allow-custom-parameters - Allow passing custom parameters (which were not defined in the workflow’s schema in the blueprint) to the execution
  • -d DEPLOYMENT_ID, --deployment-id DEPLOYMENT_ID - The ID of the deployment you wish to uninstall
  • --timeout TIMEOUT - Operation timeout in seconds (The execution itself will keep going, but the CLI will stop waiting for it to terminate) (default: 900)
  • -w, --workflow WORKFLOW - The name of the workflow to execute (default: uninstall)
  • --json - Output events in a consumable JSON format
  • --parameters=PARAMETERS - Parameters for the workflow execution (Can be provided as wildcard based paths (*.yaml, etc..) to YAML files, a JSON string or as “key1=value1;key2=value2”). This argument can be used multiple times.
  • -l, --include-logs - Include logs in returned events

 

Example

  
$ cfy uninstall -d hello_world
...

Executing workflow uninstall on deployment hello_world [timeout=900 seconds]
2016-06-28T12:13:29 CFY <hello_world> Starting 'uninstall' workflow execution
2016-06-28T12:13:30 CFY <hello_world> [http_web_server_d1dc7.stop] Sending task 'script_runner.tasks.run'
.
.
.
2016-06-28T12:14:14 CFY <hello_world> [vm_5ab69.stop] Task rescheduled 'ec2.instance.stop' -> Waiting server to stop. Retrying... [retry 1]
2016-06-28T12:14:44 CFY <hello_world> [vm_5ab69.stop] Task started 'ec2.instance.stop' [retry 2]
2016-06-28T12:14:44 CFY <hello_world> [vm_5ab69.stop] Task started 'ec2.instance.stop' [retry 2]
2016-06-28T12:14:44 CFY <hello_world> [vm_5ab69.stop] Task succeeded 'ec2.instance.stop' [retry 2]
2016-06-28T12:14:45 CFY <hello_world> [vm_5ab69->elastic_ip_02973|unlink] Sending task 'ec2.elasticip.disassociate'
.
.
.
2016-06-28T12:15:19 CFY <hello_world> [elastic_ip_02973] Deleting node
2016-06-28T12:15:19 CFY <hello_world> [elastic_ip_02973.delete] Task started 'ec2.elasticip.release'
2016-06-28T12:15:20 CFY <hello_world> 'uninstall' workflow execution succeeded
Finished executing workflow uninstall on deployment hello_world
* Run 'cfy events list --include-logs --execution-id 8b32b117-98ee-45b2-86ba-a5c28118853c' to retrieve the execution's events/logs
Deleting deployment hello_world...
Deployment deleted
Deleting blueprint hello...
Blueprint deleted

...