cURL
curl --request DELETE \ --url https://console.vast.ai/api/v0/auth/apikeys/{id}/ \ --header 'Authorization: Bearer <token>'
"Successfully Deleted API Key"
Deletes an existing API key belonging to the authenticated user. The API key is soft-deleted by setting a deleted_at timestamp.
CLI Usage: vastai delete api-key <id>
vastai delete api-key <id>
API key must be provided in the Authorization header
ID of the API key to delete
x >= 1
API key successfully deleted
The response is of type string.
string