:doc:`Athena <../../athena>` / Client / delete_named_query

******************
delete_named_query
******************



.. py:method:: Athena.Client.delete_named_query(**kwargs)

  

  Deletes the named query if you have access to the workgroup in which the query was saved.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery>`_  


  **Request Syntax**
  ::

    response = client.delete_named_query(
        NamedQueryId='string'
    )
    
  :type NamedQueryId: string
  :param NamedQueryId: **[REQUIRED]** 

    The unique ID of the query to delete.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Athena.Client.exceptions.InternalServerException`

  
  *   :py:class:`Athena.Client.exceptions.InvalidRequestException`

  