User can delete their AI conversation history
Why it matters
GDPR Article 17 (Right to Erasure) and CCPA §1798.105 (Right to Delete) give users the explicit right to request deletion of their personal data, including AI conversation history. When no self-service delete mechanism exists, every deletion request becomes a manual support ticket requiring engineering intervention — a workflow that does not scale and that many teams fail to process within the regulatory 30-day window. Worse, without a delete UI, most users do not know they can ask, meaning their data persists indefinitely by default rather than by informed choice.
Severity rationale
Medium because the absence of a user-facing delete mechanism makes GDPR Art. 17 and CCPA §1798.105 compliance operationally impossible at scale and likely results in missed 30-day response deadlines.
Remediation
Add a DELETE endpoint scoped to the requesting user's records. Never delete by ID alone — always verify ownership before deleting.
// app/api/conversations/[id]/route.ts
export async function DELETE(
req: Request,
{ params }: { params: { id: string } }
) {
const session = await getServerSession()
if (!session?.user?.id) return new Response('Unauthorized', { status: 401 })
const conversation = await db.conversation.findFirst({
where: { id: params.id, userId: session.user.id }
})
if (!conversation) return new Response('Not Found', { status: 404 })
await db.conversation.delete({ where: { id: params.id } })
return new Response(null, { status: 204 })
}
Also expose a "Clear all history" action that deletes every conversation for the current user in a single operation. Surface both in the account settings UI, not buried in a help article.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the AI Data Privacy Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- gdpr · Art. 17 — Right to erasure ('right to be forgotten')
- ccpa · §1798.105 — Right to delete personal information
- nist:rev5 · SI-12 — Information management and retention
Taxons
History
- 2026-04-18·v1.0.0·Initial import from ai-data-privacy·automated