Canceling a server lease
Written by
Updated at February 24, 2026
After canceling the lease, the server will remain active until the paid period ends, after which it will be automatically deleted.
Management console
API
- In the management console
, select the folder containing your server. - Go to BareMetal.
- Find the server you need in the list, click
in its row, then select Disable autorenewal. - In the window that opens, click Disable.
To cancel a server lease, use the StopProlongation REST API method for the Server resource or the ServerService/StopProlongation gRPC API call.
Run this command:
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <IAM_token>" \
-d '{}' \
"https://baremetal.api.cloud.yandex.net/baremetal/v1alpha/servers/<server_ID>:stopProlongation"
Where:
<IAM_token>: IAM token used for authentication.<server_ID>: ID of the server you want to update. To find out the ID, follow this guide.
Result:
{
"done": true,
"metadata": {
"@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.ServerSetProlongationMetadata",
"serverId": "ly56xpblirh4********"
},
"response": {
"@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.Server",
"osSettings": {
"storages": [
{
"partitions": [
{
"type": "EXT3",
"sizeGib": "8",
"mountPoint": "/boot"
},
{
"type": "SWAP",
"sizeGib": "3"
},
{
"type": "EXT4",
"mountPoint": "/"
}
],
"raid": {
"disks": [
{
"id": "ly536lgz5cdo********",
"type": "HDD",
"sizeGib": "1862"
},
{
"id": "ly55nr77qcgq********",
"type": "HDD",
"sizeGib": "1862"
},
{
"id": "ly57e5ouat4r********",
"type": "HDD",
"sizeGib": "1862"
},
{
"id": "ly5g77vbnavh********",
"type": "HDD",
"sizeGib": "1862"
}
],
"type": "RAID10"
}
}
],
"imageId": "ly5vyzcggvci********",
"sshPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMYMj0PbB7ObhwL0z3y+vN0BfNKw********"
},
"id": "ly56xpblirh4********",
"cloudId": "b1gia87mbaom********",
"folderId": "b1g07hj5r6i4********",
"name": "baremetal-server",
"description": "New BareMetal server",
"zoneId": "ru-central1-m",
"hardwarePoolId": "ru-central1-m4",
"status": "RUNNING",
"configurationId": "ly5fcdnlzp7j********",
"createdAt": "2025-12-07T19:09:42.520760Z"
},
"id": "ly5qkpfcxlpn********",
"description": "Server set prolongation non renewal",
"createdAt": "2025-12-08T08:04:20.893300Z",
"createdBy": "ajeb9l33h6mu********",
"modifiedAt": "2025-12-08T08:04:20.893300Z"
}
Follow the status of the operation by the done field.