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

*****************
delete_work_group
*****************



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

  

  Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.

  

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


  **Request Syntax**
  ::

    response = client.delete_work_group(
        WorkGroup='string',
        RecursiveDeleteOption=True|False
    )
    
  :type WorkGroup: string
  :param WorkGroup: **[REQUIRED]** 

    The unique name of the workgroup to delete.

    

  
  :type RecursiveDeleteOption: boolean
  :param RecursiveDeleteOption: 

    The option to delete the workgroup and its contents even if the workgroup contains any named queries, query executions, or notebooks.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  