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

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.agents.sessions.bySession_id(session_id).delete(requestConfiguration?: RequestConfiguration<object>): Promise<void>

Description

Persistent workspace contents are retained per tenant policy. A persistent workspace the session holds is saved and kept: it goes to RELEASING while the files are saved and then back to AVAILABLE. Creating a session on that workspace returns 409 until it is AVAILABLE again. Returns 204 No Content on success.

Parameters

Path Parameters

session_id string required

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

The session UUID.

Headers

X-Device-UUID string optional

Example: device-uuid-example

Optional hardware device id forwarded by doctl. Recorded on the session row as the device that performed the destroy.

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

await client.v2.agents.sessions
    .bySession_id("a1b2c3d4-e5f6-7890-abcd-ef1234567890").delete();

More Information

See /v2/agents/sessions/{session_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.