Soft delete a user account. Sets deletion flags while preserving data for audit purposes.
DELETEhttps://api.aitronos.com/v1/user/{user_id}
Performs a soft delete on a user account by setting is_deleted and is_active flags. The user will no longer appear in active user lists, but their data is preserved for audit and compliance purposes.
Access Control: Users can only delete their own account. Attempting to delete another user's account will result in a 403 error.
user_id string required
The unique identifier of the user to delete. Must match the authenticated user's ID.
Returns a JSON response indicating success or failure.
Bash
- Bash
- Python
- JavaScript
curl -X DELETE "https://api.aitronos.com/v1/user/usr_abc123" \
-H "X-API-Key: $FREDDY_API_KEY"