Skip to content
Get started

Delete an agent

client.agents.delete(stringid, AgentDeleteParams { workspaceId } params, RequestOptionsoptions?): void
DELETE/v1/workspaces/{workspaceId}/agents/{id}

Deletes an agent from the workspace

ParametersExpand Collapse
id: string
params: AgentDeleteParams { workspaceId }
workspaceId: string

Workspace ID.

Delete an agent

import Cadenya from '@cadenya/cadenya';

const client = new Cadenya({
  apiKey: process.env['CADENYA_API_KEY'], // This is the default and can be omitted
});

await client.agents.delete('id', { workspaceId: 'workspaceId' });
Returns Examples