{% extends "base.html" %} {% load static %} {% block title %}Delete {{ object.name }} - Analytics Reports{% endblock %} {% block content %}

Delete Report Confirmation Required

Confirm Report Deletion

Warning: Permanent Deletion

You are about to permanently delete an analytics report. This action cannot be undone and will affect all associated data and schedules.

Report Details
Name: {{ object.name }}
Description: {{ object.description|default:"No description" }}
Category: {{ object.get_category_display }}
Type: {{ object.get_type_display }}
Status: {{ object.get_status_display }}
Report Statistics
Created: {{ object.created_at|date:"M d, Y" }}
Created By: {{ object.created_by.get_full_name|default:"System" }}
Last Generated: {{ object.last_generated|date:"M d, Y H:i"|default:"Never" }}
Total Executions: {{ object.execution_count }}
Success Rate: {{ object.success_rate }}%
Impact Assessment
  • Report Definition: The report configuration and SQL query will be permanently deleted
  • Execution History: All {{ object.execution_count }} execution records will be removed
  • Generated Files: All previously generated report files will be deleted
  • {% if object.type == 'SCHEDULED' %}
  • Scheduled Jobs: Any scheduled executions will be cancelled
  • {% endif %}
  • Dependencies: Any dashboards or systems referencing this report may be affected
  • Audit Trail: Deletion will be logged for compliance purposes
{% if object.type == 'SCHEDULED' and object.schedule %}
Scheduled Report Warning

This is a scheduled report with the following configuration:

  • Frequency: {{ object.schedule.get_frequency_display }}
  • Time: {{ object.schedule.time|time:"H:i" }}
  • {% if object.schedule.day_of_week %}
  • Day of Week: {{ object.schedule.get_day_of_week_display }}
  • {% endif %} {% if object.schedule.day_of_month %}
  • Day of Month: {{ object.schedule.day_of_month }}
  • {% endif %}
  • Next Run: {{ object.next_run|date:"M d, Y H:i"|default:"Not scheduled" }}
{% endif %}
{{ object.execution_count }}
Executions
{{ object.file_count }}
Generated Files
{{ object.total_file_size_formatted }}
Total File Size
{{ object.dependency_count }}
Dependencies
Alternative Actions

Consider these alternatives instead of deletion:

{% if object.dependency_count > 0 %}
Dependencies Found

This report has {{ object.dependency_count }} dependencies that may be affected:

    {% for dependency in object.dependencies.all %}
  • {{ dependency.name }} ({{ dependency.type }})
  • {% endfor %}
{% endif %}
{% csrf_token %}
Deletion Confirmation
{% if object.type == 'SCHEDULED' %}
{% endif %} {% if object.dependency_count > 0 %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}