API ReferenceAccount
Schedule the account for deletion in 30 days
Pauses every project the user owns, ends their sessions and disconnects their connected apps at once. The account and the projects it owns are deleted 30 days later; signing in again before then cancels the deletion.
Requires the account:write scope — Edit your profile and preferences, export your data, delete your account.
better-auth.session_token<token>
BetterAuth session cookie. Used by the dashboard / browser clients. When present, the active project is taken from the x-project-id header.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/users/me" \ -H "Content-Type: application/json" \ -d '{ "confirmEmail": "string" }'{
"success": true,
"deletionScheduledAt": "2019-08-24T14:15:22Z",
"purgeAfter": "2019-08-24T14:15:22Z",
"storeSubscription": {
"store": "app_store",
"message": "string"
}
}{
"success": false,
"error": {
"message": "string",
"code": "string",
"details": {
"errors": [
null
]
}
}
}{
"success": false,
"error": {
"message": "string",
"code": "string",
"details": {
"errors": [
null
]
}
}
}{
"success": false,
"error": {
"message": "string",
"code": "string",
"details": {
"errors": [
null
]
}
}
}{
"success": false,
"error": {
"message": "string",
"code": "string",
"details": {
"errors": [
null
]
}
}
}{
"success": false,
"error": {
"message": "string",
"code": "string",
"details": {
"errors": [
null
]
}
}
}{
"success": false,
"error": {
"message": "string",
"code": "string",
"details": {
"errors": [
null
]
}
}
}