from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.schedule_deletion(server_id="sv_g1mbDwBZqLv5B")
# Handle response
print(res){
"data": {
"id": "sv_g1mbDwBZqLv5B",
"type": "schedule_deletion",
"attributes": {
"server_id": "sv_g1mbDwBZqLv5B",
"scheduled_deletion_at": "2026-02-14T09:57:01Z"
}
},
"meta": {}
}Schedules the server to be removed at the end of the billing cycle.
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.schedule_deletion(server_id="sv_g1mbDwBZqLv5B")
# Handle response
print(res){
"data": {
"id": "sv_g1mbDwBZqLv5B",
"type": "schedule_deletion",
"attributes": {
"server_id": "sv_g1mbDwBZqLv5B",
"scheduled_deletion_at": "2026-02-14T09:57:01Z"
}
},
"meta": {}
}Was this page helpful?