PUT
/
api
/
v0
/
machines
/
{machine_id}
/
cleanup
cleanup machine
curl --request PUT \
  --url https://console.vast.ai/api/v0/machines/{machine_id}/cleanup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": true,
  "ctime": 1633036800,
  "machine_id": 123,
  "user_id": 456,
  "num_deleted": 5,
  "msg": "deleted 5 expired contracts on machine 123"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

machine_id
integer
required

The ID of the machine to clean up.

Body

application/json · object

An empty JSON object is expected.

Response

Success response

success
boolean
Example:

true

ctime
number
Example:

1633036800

machine_id
integer
Example:

123

user_id
integer
Example:

456

num_deleted
integer
Example:

5

msg
string
Example:

"deleted 5 expired contracts on machine 123"