DELETE
/
api
/
v0
/
secrets
/
delete env var
curl --request DELETE \
  --url https://console.vast.ai/api/v0/secrets/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "MY_API_KEY"
}'
{
  "success": true,
  "msg": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
key
string
required

Name of the environment variable to delete

Example:

"MY_API_KEY"

Response

Environment variable deleted successfully

success
boolean
Example:

true

msg
string
Example:

"Operation completed successfully"