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

*********************
delete_usage_plan_key
*********************



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

  

  Deletes a usage plan key and remove the underlying API key from the associated usage plan.

  

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


  **Request Syntax**
  ::

    response = client.delete_usage_plan_key(
        usagePlanId='string',
        keyId='string'
    )
    
  :type usagePlanId: string
  :param usagePlanId: **[REQUIRED]** 

    The Id of the UsagePlan resource representing the usage plan containing the to-be-deleted UsagePlanKey resource representing a plan customer.

    

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

    The Id of the UsagePlanKey resource to be deleted.

    

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

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

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

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

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

  