v1
latestOpenAPI 3.1.02026-07-13897404.3 KBMachines
cleanup machine
This endpoint removes expired contracts on a specified machine, freeing up space.
CLI Usage: vastai cleanup machine <machine_id>
put/api/v0/machines/{machine_id}/cleanup/
Path parameters
machine_idinteger required
The ID of the machine to clean up.
Request body
object required
An empty JSON object is expected.
Response
Success response
Example response
{
"success": true,
"ctime": 1633036800,
"machine_id": 123,
"user_id": 456,
"num_deleted": 5,
"msg": "deleted 5 expired contracts on machine 123"
}