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

*************************
delete_prepared_statement
*************************



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

  

  Deletes the prepared statement with the specified name from the specified workgroup.

  

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


  **Request Syntax**
  ::

    response = client.delete_prepared_statement(
        StatementName='string',
        WorkGroup='string'
    )
    
  :type StatementName: string
  :param StatementName: **[REQUIRED]** 

    The name of the prepared statement to delete.

    

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

    The workgroup to which the statement to be deleted belongs.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

  