delete_report_definition

CostandUsageReportService.Client.delete_report_definition(**kwargs)

Deletes the specified report.

See also: AWS API Documentation

Request Syntax

response = client.delete_report_definition(
    ReportName='string'
)
Parameters
ReportName (string) -- The name of the report that you want to delete. The name must be unique, is case sensitive, and can't include spaces.
Return type
dict
Returns
Response Syntax
{
    'ResponseMessage': 'string'
}

Response Structure

  • (dict) --

    If the action is successful, the service sends back an HTTP 200 response.

    • ResponseMessage (string) --

      Whether the deletion was successful or not.

Exceptions

  • CostandUsageReportService.Client.exceptions.InternalErrorException
  • CostandUsageReportService.Client.exceptions.ValidationException

Examples

The following example deletes the AWS Cost and Usage report named ExampleReport.

response = client.delete_report_definition(
    ReportName='ExampleReport',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}