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).
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). |