dots.v1.signals.deletions.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v1.signals.deletions.post(body: Create_deletion_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Deletion_job>

Description

To permanently delete Signals conversation data, send a POST request to /v1/signals/deletions. Deletion cannot be undone.

Two deletion types are supported:

  • agent, deletes Signals conversations for one Harness Runtime environment and turns off collection for that environment. Requires environment_id (the environment’s Environment Config ID). Deprecated agent_id is still accepted; both set and equal is accepted, both set and different returns 400. On create, matching conversations are hidden from Signals reads immediately. Wait until the job is complete before enabling Signals for the environment again.
  • inference, deletes Serverless Inference Signals conversations for your whole team (team-wide; not limited to one endpoint or model) that were collected at or before the deletion request, and turns off team inference collection (source=inference). Do not send environment_id or agent_id. On create, matching conversations are hidden from Signals reads immediately.

The job runs asynchronously; poll the get endpoint until status is complete or failed. DigitalOcean may retry transient processing errors while a job is still active. If a job ends as failed, matching conversations stay hidden and collection stays off; send the same create request again to retry. Earlier export files are not deleted and remain available until they expire.

Note: Deletion removes Signals conversation data for the requested scope. Aggregated Insights or metrics charts may still show historical summary datapoints after deletion. Those summaries are not the same as recoverable conversation content.

The endpoint is idempotent: if a queued or running job already exists for the same target, it is returned with 200 OK. A new job returns 202 Accepted. Each team can have a limited number of active jobs; requests beyond that limit return 429 Too Many Requests.

Parameters

type string required

The scope of the deletion. agent deletes Signals conversations for one Harness Runtime environment and requires environment_id (or deprecated agent_id). inference deletes Serverless Inference Signals conversations for the whole team (team-wide; omit environment_id and agent_id).

One of: agent, inference

teamId integer required

Example: 12345678

The team whose data should be deleted. Must match the authenticated team.

environmentId string optional

Example: 01a10d3f-2c09-764f-99f8-458e521627f3

The Harness Runtime Environment Config ID of the environment whose conversations should be deleted. Required when type is agent if agent_id is omitted; must be omitted when type is inference. Prefer this over agent_id.

agentId string optional deprecated

Example: 01a10d3f-2c09-764f-99f8-458e521627f3

Deprecated alias for environment_id. Accepted for backward compatibility; must equal environment_id when both are set. Both set and different returns 400. Required when type is agent if environment_id is omitted; must be omitted when type is inference.

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.v1.signals.deletions.post({
    type: "agent",
    teamId: 12345678,
    environmentId: "01a10d3f-2c09-764f-99f8-458e521627f3",
});

Response Example

Show Response Example
{
  "team_id": 12345678,
  "deletion_id": "01J9ZX0N5Q7M2K3R4S5T6V7W8X",
  "type": "agent",
  "agent_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
  "environment_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
  "status": "running",
  "error_message": null,
  "created_at": 1791036405,
  "started_at": 1791036410,
  "completed_at": null
}

More Information

See /v1/signals/deletions 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.