DELETE/api/v1/account/delete

Permanently delete account + GDPR right to erasure

Initiates an irreversible account deletion. Per GDPR Article 17 (right to erasure), all personal data is purged within 30 days. Triggers async export of data first (recoverable for 7 days via support). The audit_logs row for this action carries an HMAC entry-signature (ADR-0023) for forensic record.

Authentication

Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.

Response

202 example

{
  "scheduled_for": "2026-05-29T20:54:19.737Z",
  "recovery_window_days": 0
}

All status codes

202Deletion scheduled.
400(no description)
401(no description)
429(no description)

Code samples

cURL

curl -X DELETE \
  https://evalguard.ai/api/v1/account/delete \
  -H "Authorization: Bearer $EVALGUARD_API_KEY" \

TypeScript

import { EvalGuard } from "@evalguard/sdk";

const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });

const response = await client.request({
  method: "DELETE",
  path: "/api/v1/account/delete",
});
console.log(response);

Python

from evalguard import EvalGuard
import os

client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])

response = client.request(method="DELETE", path="/api/v1/account/delete")
print(response)

Go

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/evalguard/evalguard-go"
)

func main() {
	client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
	resp, err := client.Request(context.Background(), "DELETE", "/api/v1/account/delete", nil)
	if err != nil { panic(err) }
	fmt.Println(resp)
}

Errors

400401429

Other Compliance endpoints