cURL
curl --request PUT \ --url https://console.vast.ai/api/v0/instances/recycle/{id}/ \ --header 'Authorization: Bearer <token>'
{ "success": true }
Destroys and recreates container in place (from newly pulled image) without losing GPU priority. Updates container status to ‘recycling’ and executes docker stop/remove commands on the host machine.
CLI Usage: vastai recycle instance <id>
vastai recycle instance <id>
API key must be provided in the Authorization header
ID of the instance to recycle
Instance recycle initiated successfully
true