Delete User API - GDPR Compliant User Removal
Permanently delete users and all associated data with our User Deletion API. GDPR compliant endpoint for removing user accounts, loyalty data, activity history, and personal information.
Essential for data privacy compliance, GDPR right to erasure, user account management, and data protection regulations. Ensures complete removal of user data from the loyalty platform.
This endpoint allows you to permanently delete a user and all their associated data from the Lynes Loyalty platform.
Endpoint
DELETE /user/{userId}Authentication
Authentication Required
This endpoint requires a valid JWT token with appropriate permissions.
See our JWT Authentication guide for more details.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | The unique identifier of the user |
Example Request
curl -X DELETE "https://api.lynesapp.de/user/user_123" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"Response
Success Response (200 OK)
{
"success": true,
"message": "User successfully deleted"
}Status Codes
| Status Code | Description |
|---|---|
200 | User successfully deleted |
401 | Unauthorized - Invalid or missing authentication token |
403 | Forbidden - Insufficient permissions |
404 | User not found |
500 | Internal server error |
Important Notes
Permanent Action
Deleting a user is permanent and cannot be undone. All user data including points, event history, challenge progress, and rewards will be permanently removed.
Related Endpoints
- Get User - Retrieve user information
- Update User - Update user details
- Create User - Create a new user