Generate a new Vultr current user API key securely using portal or API.
Deleting a current user API key is an important security measure to prevent unauthorized access. Remove keys that are no longer needed or may be compromised to maintain secure account access.
Follow this guide to delete an API key for current user in the Vultr Customer Portal or via Vultr API.
Send a GET
request to the List API Keys endpoint to retrieve all available API keys for the current user.
$ curl "https://api.vultr.com/v2/apikeys" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the id
of the API key you want to delete.
Send a DELETE
request to the Delete API Key endpoint to remove the API key by ID.
$ curl "https://api.vultr.com/v2/apikeys/{apikey-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
An HTTP response of 204 No Content
confirms that your API key is deleted.
No comments yet.