:doc:`CodeBuild <../../codebuild>` / Client / delete_report_group

*******************
delete_report_group
*******************



.. py:method:: CodeBuild.Client.delete_report_group(**kwargs)

  

  Deletes a report group. Before you delete a report group, you must delete its reports.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_report_group(
        arn='string',
        deleteReports=True|False
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The ARN of the report group to delete.

    

  
  :type deleteReports: boolean
  :param deleteReports: 

    If ``true``, deletes any reports that belong to a report group before deleting the report group.

     

    If ``false``, you must delete any reports in the report group. Use `ListReportsForReportGroup <https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html>`__ to get the reports in a report group. Use `DeleteReport <https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html>`__ to delete the reports. If you call ``DeleteReportGroup`` for a report group that contains one or more reports, an exception is thrown.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CodeBuild.Client.exceptions.InvalidInputException`

  