Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_report_definition

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': {
        '...': '...',
    },
}