Example use case
A prospect closes their account on your sales agent and requests complete data removal. Because you followed the one-agent-per-customer architecture, all of their threads, memories, files, and logs live inside a single agent.Setup
Look up the customer’sagent_id in your database and call DELETE/v2/agents/ as the agent’s owner:
- Priors returns
202with"status": "deleted". - The agent, every thread, every memory, every uploaded file, and all activity history become permanently unreadable.
- The agent slot returns immediately to your organization’s quota.
Benefit with Priors
- Atomic offboarding: one call replaces fragile sweeps across threads, files, and individual memory turns.
- Clean compliance boundary: one agent per customer makes deletion requests verifiable and self-contained.
What goes wrong
Recommendation
Give each customer their own agent from day one so offboarding is always a single DELETE/v2/agents/ call. Treat 404 on a retry as already deleted, and remove the agent_id mapping from your own database once confirmed.
Calls used
- Guides: Agents, Your data, Limits
- API reference: Delete agent, Get agent