delete

Description

Delete variables from a workspace.

Usage

tfct variable delete [options]

Options

ShortLongDescription
-k--var-key <VAR_KEY>The key of the variable to delete from the workspace.
-v--var-id <VAR_ID>The id of the variable to delete from the workspace.
--var-file <VAR_FILE>The file containing variables.

Examples

Delete a variable from a workspace

tfct variable delete --workspace-name "my-workspace" --var-key "SECRET_KEY"
tfct variable delete --workspace--name "my-workspace" --var-id "var-id"

Delete a variable from a workspace using a file

{
  "variables": [
    {
      "var": "SECRET_KEY=mysecretohno:ENV var for the secret:env:false:true"
    },
    {
      "var": "newthing=vale::::true"
    }
  ]
}
tfct variable delete --workspace-id "ws-id" --var-file vars.json