:doc:`APIGateway <../../apigateway>` / Client / delete_method_response

**********************
delete_method_response
**********************



.. py:method:: APIGateway.Client.delete_method_response(**kwargs)

  

  Deletes an existing MethodResponse resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/DeleteMethodResponse>`_  


  **Request Syntax**
  ::

    response = client.delete_method_response(
        restApiId='string',
        resourceId='string',
        httpMethod='string',
        statusCode='string'
    )
    
  :type restApiId: string
  :param restApiId: **[REQUIRED]** 

    The string identifier of the associated RestApi.

    

  
  :type resourceId: string
  :param resourceId: **[REQUIRED]** 

    The Resource identifier for the MethodResponse resource.

    

  
  :type httpMethod: string
  :param httpMethod: **[REQUIRED]** 

    The HTTP verb of the Method resource.

    

  
  :type statusCode: string
  :param statusCode: **[REQUIRED]** 

    The status code identifier for the MethodResponse resource.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`APIGateway.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`APIGateway.Client.exceptions.NotFoundException`

  
  *   :py:class:`APIGateway.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`APIGateway.Client.exceptions.BadRequestException`

  
  *   :py:class:`APIGateway.Client.exceptions.ConflictException`

  