{% extends "base.html" %} {% load static %} {% block title %}Delete Alert Rule - Communications{% endblock %} {% block content %}

Delete Alert Rule

Confirm Alert Rule Deletion
Alert Rule to be deleted:
Rule Name: {{ object.rule_name }}
Category: {{ object.get_category_display }}
Severity: {{ object.get_severity_display }}
Status: {% if object.is_active %}Active{% else %}Inactive{% endif %}
Created: {{ object.created_at|date:"M d, Y" }}
Last Triggered: {% if object.last_triggered %} {{ object.last_triggered|date:"M d, Y g:i A" }} {% else %} Never {% endif %}
Trigger Count: {{ object.trigger_count|default:0 }} times
Recipients: {{ object.recipients.count|default:0 }} users
Condition Expression:
{{ object.condition_expression }}
{% if object.description %}
Description:
{{ object.description|linebreaks }}
{% endif %}
Deletion Impact Assessment:
{{ active_instances|default:0 }}
Active alert instances
{{ object.recipients.count|default:0 }}
Affected recipients
{{ historical_instances|default:0 }}
Historical instances
{{ dependent_rules|default:0 }}
Dependent rules
Safety Recommendations:
{% if object.severity == 'CRITICAL' %} {% endif %}
Deactivate Instead
Recommended

Keep the rule but disable it to preserve historical data and allow future reactivation.

Archive Rule Data
Backup Option

Export rule configuration and historical data before deletion.

Create Replacement
Safe Transition

Create a new rule to replace this one before deletion.

Transfer Recipients
Migration

Move recipients to another alert rule before deletion.

{% if active_instances > 0 or dependent_rules > 0 %}
{% endif %}
{% csrf_token %}
{% if object.severity == 'CRITICAL' %}
{% endif %} {% if active_instances > 0 %}
{% endif %}
Cancel Back to List
{% endblock %} {% block js %} {% endblock %}