Destroy
Use codify destroy
to destroy (uninstall) resources on the system. codify destroy
performs
a plan in stateful mode with the desired state being null. This generates a plan that destroys all of
the specified resource types (ids) if they exist on the system. A plan of the changes and a
confirmation is shown before any changes are applied onto the system.
This command was previously named codify uninstall
in 0.2.0
.
Arguments
<type>: The type id of the resources to destroy. Multiple ids separated by spaces can be specified.
Options
Output mode: —output -o
Specify the CLI output mode. Options: [default, plain, debug, json]. The output mode controls what gets
printed to the console.
Debug output mode: —debug
A flag to enable debug mode. In debug mode, the debug output will be turned on and the DEBUG=codify flag
will be passed to all plugins. Additional and verbose logging will be printed. Useful for debugging
any issues.
Secure mode: —secure -s
Activates secure mode which sandboxes all plugins and prevents them from using sudo unless explictly
permitted by the user. This is done by launching the plugins as a separate processes without TTY access.
Secure mode is automatically turned on if an unverified plugin is used.