> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# destroy

> Destroys resources created using previous apply operation, make sure to consistently use backend state or state directory. Target Properties Property

Destroys resources created using previous apply operation, make sure to consistently use backend state or state directory. 

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Terraform Version</td><td>`FDTF_TF_EXE_VERSION`</td><td>No</td><td>Desired version of the terraform executable to be downloaded. Defaults to version 0.12.24</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Cloud Accounts</td><td>`FDTF_INP_CLOUD_ACCOUNTS`</td><td>No</td><td>FlexDeploy Cloud Accounts to use for authorization and connection.  See the [home ](https://docs.flexagon.com/flexdeploy-11-0-documentation/flexdeploy-plugin-guides/flexdeploy-terraform-plugin-guide.md)page for more information on Cloud Accounts and configuring authorization.</td></tr><tr><td>Variables</td><td>`FDTF_INP_TERRAFORM_APPLY_VARS`</td><td>No</td><td>Terraform variables to use.  Separate key value by '=' and put entries on separate lines.  var1=val1var2=val2</td></tr><tr><td>State Directory</td><td>`FDTF_INP_TERRAFORM_STATE_DIR`</td><td>No</td><td>Local directory where to maintain state.  If using a backend state manager, then leave this blank.  If blank and no backend is detected, this will default to the internal state directory for the project./var/flexdeploy/terraformstate/%projectId%</td></tr><tr><td>Terraform Path</td><td>`FDTF_INP_TERRAFORM_EXE_OVERRIDE`</td><td>No</td><td>If the Terraform executable is not on the path you can specify the location here</td></tr><tr><td>Init Parameters</td><td>`FDTF_INP_TERRAFORM_INIT_PARAMETERS`</td><td>No</td><td>Init parameters to add. (Ex: -backend-config="")</td></tr><tr><td>Additional Arguments</td><td>`FDTF_INP_ADDITIONAL_ARGS`</td><td>No</td><td>Pass additional arguments to the terraform command.Useful for resource targeting (Ex: -target="")</td></tr><tr><td>Global Options</td><td>`FDTF_INP_GLOBAL_OPTIONS`</td><td>No</td><td>Pass Global options arguments to the terraform command.Global options to add (Ex: -chdir="DIR")(chdir=DIR) - Changes the working directory before executing the subcommand.</td></tr><tr><td>Perform Property Replacement</td><td>`FDTF_INP_PERFORM_PROPERTY_REPLACEMENT`</td><td>No</td><td>Check to perform property replacement. By default, all tf or tf.json files in the artifacts directory are replaced.If -chdir= is specified in global inputs, only files in that directory are replaced. Defaults to true.</td></tr></tbody></table>

# Outputs

Allows user defined outputs.  All outputs defined in the Terraform configuration are available to be returned as FlexDeploy outputs.  Simply add them to the Outputs tab in the plugin configuration.

# Artifacts

This operation consumes artifacts from the artifacts repository.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

# Special Considerations

Terraform configuration files are expected to be in the FlexDeploy Artifact Repository
