Delete custom analyst

Deletes the analyst identified by analystId in the path. No JSON body—authenticate with your API key only. Deletion applies to analysts owned by your key.

DELETE/users/custom-analysts/:analystId

Path parameter

analystId — id of the custom analyst to remove.

Code examples

const analystId = "<analyst-uuid>";
await fetch(`${process.env.API_BASE}/users/custom-analysts/${analystId}`, {
  method: "DELETE",
  headers: {
    "X-Api-Key": process.env.LENI_API_KEY!,
  },
});

See Custom analysts overview for context.