/{app_slug}/v1/meAuthPermanently delete the signed-in EndUser account
Removes the EndUser, all sessions, and all related records inside this app. Cannot be undone. The app audit log keeps one `auth.account.deleted` row (`via: self`; username and email domain only, never the address), and `user.deleted` fires with `via: "self"`.
Path parameters
app_slug*stringSlug of the app.
Response · 204
Account deleted.
Example
Request
DELETE https://api.auth.productcraft.co/{app_slug}/v1/me
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.consumer("my-app").me.deleteAccount();auth.consumer(…).me.deleteAccount(options?): void