Cancel a VPS
cancel_serviceCancel a VPS. DEFAULT end_of_period: the server stays active until the end of the already-paid period, then is simply not renewed — NO data loss now, safe. immediate DESTROYS the VM and ALL data right away, permanently and irreversibly, and REQUIRES confirm set to the exact server hostname (see get_vps_status). Use end_of_period unless you explicitly intend to wipe the server now. On immediate, the unused portion of the already-paid period is refunded to your account balance (see refund_amount in the response). Already scheduled end_of_period? Call undo_cancel to keep the server, or call cancel_service again with type=immediate + confirm to switch to immediate destruction (refund as above). get_vps_status shows cancellation {type, cancel_at, can_undo}. Requires: token + reason; immediate also needs confirm=hostname. Typical: 409 cancellation_already_scheduled → undo_cancel, or repeat with type=immediate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| reason | Yes | REQUIRED: why this VPS is being cancelled (e.g. project finished, too expensive, no longer needed). | |
| confirm | No | ||
| service_id | No | Service code as returned by list_vps/order_vps, e.g. "68J67T5" (a plain numeric id is also accepted). |