Deleting a robot account from the Vultr Container Registry removes its access to repositories, ensuring that outdated credentials do not remain active. This improves security by minimizing exposure and reducing the risk of unauthorized access. Removing unused robot accounts also streamlines container registry management, keeping it clean and organized.
Follow this guide to delete a robot account from your container registry on your Vultr account using the Vultr API.
Send a GET
request to the List Container Registries endpoint and note the target registry's ID.
$ curl "https://api.vultr.com/v2/registries" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List Robots endpoint to list all the available robots and note the target robot's name.
$ curl "https://api.vultr.com/v2/registry/{registry-id}/robots" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
$
and +
, which must be URL-encoded before making API requests to prevent errors. You can either manually replace $
with %24
and +
with %2B
in the endpoint or export the robot name as a variable, avoiding the need for manual encoding.
Send a DELETE
request to the Delete Robot endpoint to delete the target robot account.
$ curl "https://api.vultr.com/v2/registry/{registry-id}/robot/{robot-name}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
No comments yet.