import { ProficientClient } from "@proficient/client";const proficient = new ProficientClient({ apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY, userExternalId: "...", // The user's unique ID in your system});const interactionId = "int_53mfKtX0Da6zaJCp5bNnzxDaEg1xptWvQDr2";const interaction = await proficient.interactions.delete(interactionId);
Permanently deletes the specified interaction and all the messages within it. This cannot be undone.
DELETE
/
interactions
/
{interaction_id}
Copy
import { ProficientClient } from "@proficient/client";const proficient = new ProficientClient({ apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY, userExternalId: "...", // The user's unique ID in your system});const interactionId = "int_53mfKtX0Da6zaJCp5bNnzxDaEg1xptWvQDr2";const interaction = await proficient.interactions.delete(interactionId);
import { ProficientClient } from "@proficient/client";const proficient = new ProficientClient({ apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY, userExternalId: "...", // The user's unique ID in your system});const interactionId = "int_53mfKtX0Da6zaJCp5bNnzxDaEg1xptWvQDr2";const interaction = await proficient.interactions.delete(interactionId);