Skip to content

Delete Agent Data

client.beta.agentData.delete(stringitemID, AgentDataDeleteParams { organization_id, project_id } params?, RequestOptionsoptions?): AgentDataDeleteResponse
DELETE/api/v1/beta/agent-data/{item_id}

Delete agent data by ID.

ParametersExpand Collapse
itemID: string
params: AgentDataDeleteParams { organization_id, project_id }
organization_id?: string | null
project_id?: string | null
ReturnsExpand Collapse
AgentDataDeleteResponse = Record<string, string>

Delete Agent Data

import LlamaCloud from '@llamaindex/llama-cloud';

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

const agentData = await client.beta.agentData.delete('item_id');

console.log(agentData);
{
  "foo": "string"
}
Returns Examples
{
  "foo": "string"
}