Authentication
Bearer token: Bearer <admin_token>
This endpoint requires admin privileges.
Path Parameters
The user’s profile ID (UUID)
Example Request
curl -X DELETE https://api.sari-platform.com/api/profiles/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer <admin_token>"
Response
{
"message": "User deleted successfully"
}
What Happens
- Profile Deleted - User profile removed from database
- Access Revoked - All collection access grants removed (cascade)
- Firebase Mapping - Firebase UID mapping removed
This action is irreversible. The user will need to register again.
Errors
| Status | Description |
|---|
| 401 | Invalid or expired token |
| 403 | Admin access required |
| 404 | User not found |