dots.v2.agents.sessions.bySession_id().checkpoints.byCheckpoint_id().delete()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.agents.sessions.bySession_id(session_id).checkpoints.byCheckpoint_id(checkpoint_id).delete(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Delete_checkpoint_response>

Description

Idempotent: deleting an already-gone checkpoint still returns 200. Removes the DB row and the substrate checkpoint.

Parameters

session_id string required

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

The session UUID.

checkpoint_id string required

Example: cp_9f2c1a4b

The checkpoint id.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.agents.sessions
    .bySession_id("a1b2c3d4-e5f6-7890-abcd-ef1234567890").checkpoints
    .byCheckpoint_id("cp_9f2c1a4b").delete();

Response Example

Show Response Example
{
  "checkpoint_id": "string",
  "deleted": true
}

More Information

See /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.