code: def delete_user(user, driver, user_delete=None):  # noqa: E501
      
      if connexion.request.is_json:
          user_delete = UserDelete.from_dict(connexion.request.get_json())  # noqa: E501
  
      response = errorIfUnauthorized(role='admin')
      if response:
          return response
      else:
          response = ApitaxResponse()
  
      driver: Driver = LoadedDrivers.getDriver(driver)
  
      if driver.deleteApitaxUser(User(username=user)):
          return Response(status=200, body=response.getResponseBody())
  
      return ErrorResponse(status=500, message='Failed to create user')
docs: Delete a user
  
      Delete a user # noqa: E501
  
      :param user: Delete user with this name
      :type user: str
      :param driver: The driver to use for the request. ie. github
      :type driver: str
      :param user_delete: The data needed to delete this user
      :type user_delete: dict | bytes
  
      :rtype: Response