v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Accounts

delete env var

Deletes an environment variable associated with the authenticated user. The variable must exist and belong to the requesting user.

CLI Usage: vastai delete env-var <name>

delete/api/v0/secrets/

Request body

keystring required

Name of the environment variable to delete

Example request

{
  "key": "MY_API_KEY"
}

Response

Environment variable deleted successfully

successboolean
msgstring

Example response

{
  "success": true,
  "msg": "Operation completed successfully"
}