Skip to main content

thermostat remove

This command removes a deployed application from the current machine. It must be run from the folder that the application is deployed in. It will leave the removed application files in the current directory unless you pass the --delete-files option, in which case it will also clean up all the Thermostat-related files in the current directory.

The basic order of operations of this process are as follows:

  1. Check deployment status: Thermostat checks that the current directory contains an already deployed application.
  2. Stop application: Thermostat runs the "stop" script defined in the scripts section of the application's Thermostat configuration file if it exists.
  3. Update services: Thermostat removes any application configuration from the services that are specified in the services section of the application's Thermostat configuration file.
  4. Delete files: If the --delete-files option is passed, Thermostat deletes all the application files in the current directory.
  5. Remove application configuration: Thermostat removes it's internal record of this application from it's internal configuration file.

If any step of the deployment process fails, all changes are automatically rolled back to how things were before the command was run.

Usage:
$ thermostat remove

Options:
--delete-files [boolean] Delete all files related to the deployed application.