import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.servers.scheduleDeletion({
serverId: "sv_g1mbDwBZqLv5B",
});
console.log(result);
}
run();{
"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.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.servers.scheduleDeletion({
serverId: "sv_g1mbDwBZqLv5B",
});
console.log(result);
}
run();{
"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?