def delete_user(client: httpx.Client, user_id: UUID) -> Response[Union[UserModel, ErrorMessage, HTTPValidationError]]:
    """Sends a DELETE request to `/api/users/{user_id}` endpoint to delete a user.

    Args:
        client: the authenticated Argilla client to be used to send the request to the API.
        user_id: the id of the user to be deleted.

    Returns:
        A `Response` object containing a `parsed` attribute with the parsed response if
        the request was successful, which is an instance of `UserModel`.
    """
    url = f"/api/users/{user_id}"

    response = client.delete(url=url)

    if response.status_code == 200:
        parsed_response = UserModel(**response.json())
        return Response(
            status_code=response.status_code,
            content=response.content,
            headers=response.headers,
            parsed=parsed_response,
        )
    return handle_response_error(response)
Sends a DELETE request to `/api/users/{user_id}` endpoint to delete a user.

    Args:
        client: the authenticated Argilla client to be used to send the request to the API.
        user_id: the id of the user to be deleted.

    Returns:
        A `Response` object containing a `parsed` attribute with the parsed response if
        the request was successful, which is an instance of `UserModel`.
    
argilla-v1/src/argilla_v1/client/sdk/users/api.py