@bottle.delete('/api/v3/report/<report_uuid>')
def delete_report(report_uuid: ReportId, database: Database):
    'Delete a report.'
    data_model = latest_datamodel(database)
    reports = latest_reports(database)
    data = ReportData(data_model, reports, report_uuid)
    data.report['deleted'] = 'true'
    user = sessions.user(database)
    data.report['delta'] = dict(uuids=[report_uuid], email=user['email'], description=f"{user['user']} deleted the report '{data.report_name}'.")
    return insert_new_report(database, data.report)
Delete a report.
@bottle.delete('/api/v3/report/<report_uuid>')
def delete_report(report_uuid: ReportId, database: Database):
    
    data_model = latest_datamodel(database)
    reports = latest_reports(database)
    data = ReportData(data_model, reports, report_uuid)
    data.report['deleted'] = 'true'
    user = sessions.user(database)
    data.report['delta'] = dict(uuids=[report_uuid], email=user['email'], description=f"{user['user']} deleted the report '{data.report_name}'.")
    return insert_new_report(database, data.report)