File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
operations/automation-script Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Script to delete the workspace created by the loadAndRunWorkspace.sh script
3
3
4
- # Make sure ATLAS_TOKEN environment variable is set
4
+ # Make sure TFE_TOKEN environment variable is set
5
5
# to owners team token for organization
6
6
7
7
# Set address if using private Terraform Enterprise server.
21
21
22
22
# Try to delete the workspace.
23
23
echo " Attempting to delete the workspace"
24
- delete_workspace_result=$( curl --header " Authorization: Bearer $ATLAS_TOKEN " --header " Content-Type: application/vnd.api+json" --request DELETE " https://${address} /api/v2/organizations/${organization} /workspaces/${workspace} " )
24
+ delete_workspace_result=$( curl --header " Authorization: Bearer $TFE_TOKEN " --header " Content-Type: application/vnd.api+json" --request DELETE " https://${address} /api/v2/organizations/${organization} /workspaces/${workspace} " )
25
25
26
26
# Get the response from the TFE server
27
27
# Note that successful deletion will give a null response.
You can’t perform that action at this time.
0 commit comments