---
title: "Delete current user's account and all associated data."
method: DELETE
path: "/api/v1/user/me"
---

# Delete current user's account and all associated data.

`DELETE /api/v1/user/me`

**Authentication**: JWT token required
**Warning**: This action is irreversible and deletes all user data
**Scope**: Deletes current authenticated user's account

**Request**: No request body required

**Deletion Process**:
- Cancels all running executions for this user
- Deletes all execution history and logs
- Removes user-created scripts (if user is owner)
- Deletes user profile and authentication data
- Revokes all active sessions and tokens
- Removes user from any Google Groups (if enabled)

**Success Response Schema**:
```json
{
  "data": {
    "id": "user-123",
    "email": "user@example.com",
    "name": "John Doe",
    "role": "USER",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T13:00:00Z",
    "deleted_at": "2025-01-15T13:00:00Z",
    "status": "DELETED"
  }
}
```

**Data Cleanup**:
- User profile information permanently deleted
- Execution history and logs removed
- Script ownership transferred or scripts deleted
- Session tokens invalidated immediately
- Email address becomes available for re-registration

**Important Notes**:
- Action cannot be undone - all data is permanently lost
- User will be immediately logged out from all devices
- Any shared scripts may become inaccessible to other users
- Admin users cannot delete their own accounts via this endpoint

**GDPR Compliance**:
- Implements "right to erasure" requirements
- Removes all personal data from system
- Maintains minimal audit log for compliance (anonymized)

**Error Responses**:
- `401 Unauthorized`: JWT token required
- `403 Forbidden`: Cannot delete admin accounts via self-service
- `500 Internal Server Error`: Account deletion failed

## Response `200`

Success

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/trends/apis/trends-earth-api.md) · [All operations](https://skmtc.dev/trends/apis/trends-earth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trends/trends-earth-api/revisions/6bdbc0b84666/schema)
