Skip to content
Get started

Delete a variation

client.agentVariations.delete(stringid, AgentVariationDeleteParams { agentId } params, RequestOptionsoptions?): void
DELETE/v1/agents/{agentId}/variations/{id}

Deletes a variation from an agent

ParametersExpand Collapse
id: string
params: AgentVariationDeleteParams { agentId }
agentId: string

Agent ID (from path)

Delete a variation

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.agentVariations.delete('id', { agentId: 'agentId' });
Returns Examples