:doc:`AppSync <../../appsync>` / Client / delete_api_key

**************
delete_api_key
**************



.. py:method:: AppSync.Client.delete_api_key(**kwargs)

  

  Deletes an API key.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey>`_  


  **Request Syntax**
  ::

    response = client.delete_api_key(
        apiId='string',
        id='string'
    )
    
  :type apiId: string
  :param apiId: **[REQUIRED]** 

    The API ID.

    

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

    The ID for the API key.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppSync.Client.exceptions.BadRequestException`

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

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

  
  *   :py:class:`AppSync.Client.exceptions.InternalFailureException`

  