Vast.ai API
Machines

cleanup machine

1min
PUT
https://console.vast.ai/api/v0/machines/{machine_id}/cleanup
Production server

This endpoint removes expired contracts on a specified machine, freeing up space.

CLI Usage: vast-ai cleanup machine {machine_id}

Authentication
BearerAuth
Path Parameters
machine_id
*
Body Parameters
body
*
Description
An empty JSON object is expected.
Responses
200
Success response
success
ctime
machine_id
user_id
num_deleted
msg
400
Bad Request
success
error
msg
401
Unauthorized
success
error
msg
403
Forbidden
success
error
msg
429
Too Many Requests
detail