{% extends 'base.html' %} {% load static %} {% block title %}Delete Risk Assessment - {{ assessment.title }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Delete Risk Assessment

Delete Risk Assessment: {{ assessment.title }}

This action will permanently delete the risk assessment and all associated data. Please review the impact before proceeding.

{{ assessment.mitigation_actions.count|default:0 }}
Mitigations
{{ assessment.team_members.count|default:0 }}
Team Members
Permanent Deletion Warning
This action cannot be undone. All assessment data, including risk analysis, mitigation actions, team assignments, and historical records will be permanently deleted.
{% if assessment.status == 'approved' %}
Approved Assessment Warning
This assessment has been approved and is part of your organization's risk management framework. Consider archiving instead of deleting to preserve compliance records.
{% endif %}
Assessment Information
Assessment Title
{{ assessment.title }}
Assessment ID
{{ assessment.assessment_id|default:assessment.id }}
Risk Level
{{ assessment.get_risk_level_display }}
Department
{{ assessment.department.name|default:"Not specified" }}
Assessor
{{ assessment.assessor.get_full_name|default:"Not assigned" }}
Status
{{ assessment.get_status_display }}
Created
{{ assessment.created_at|date:"M d, Y" }}
Last Updated
{{ assessment.updated_at|date:"M d, Y" }}
Risk Score
{{ assessment.risk_score|default:"Not calculated" }}
Next Review
{{ assessment.next_review_date|date:"M d, Y"|default:"Not scheduled" }}
{% if assessment.description %}
Description
{{ assessment.description }}
{% endif %}
Deletion Impact Analysis
  • Mitigation Actions
    {{ assessment.mitigation_actions.count }} mitigation action{{ assessment.mitigation_actions.count|pluralize }} will be permanently deleted
    {{ assessment.mitigation_actions.count }}
  • Team Access
    {{ assessment.team_members.count|default:0 }} team member{{ assessment.team_members.count|pluralize }} will lose access to this assessment
    {{ assessment.team_members.count|default:0 }}
  • Active Alerts
    All configured alerts and notifications will be removed
    {{ assessment.alerts.count|default:0 }}
  • Documents & Reports
    Associated documents and historical reports will no longer be accessible
    {{ assessment.documents.count|default:0 }}
  • Activity History
    Complete activity timeline and audit trail will be permanently deleted
    {{ assessment.activities.count|default:0 }}
  • Risk Analytics
    Risk trend data and performance metrics will be lost
Deletion Confirmation Process
  1. 1
    Review Impact
    Carefully review all data that will be permanently deleted above
  2. 2
    Export Data
    Export assessment data and reports for backup before deletion
  3. 3
    Notify Team
    Inform team members about the assessment deletion
  4. 4
    Confirm Deletion
    Check the confirmation box and proceed with deletion
{% csrf_token %}
Type the exact assessment title to enable deletion
Risk Matrix
{{ assessment.likelihood|default:"-" }}
Likelihood
{{ assessment.impact|default:"-" }}
Impact
{{ assessment.risk_score|default:"-" }}
Risk Score
{{ assessment.residual_risk|default:"-" }}
Residual Risk
Current Risk Level
{{ assessment.get_risk_level_display }}
Assessment Date
{{ assessment.assessment_date|date:"M d, Y"|default:"Not set" }}
Next Review
{{ assessment.next_review_date|date:"M d, Y"|default:"Not scheduled" }}
Days Active
{{ assessment.days_since_created|default:0 }}
{% if assessment.mitigation_actions.exists %}
Mitigation Actions ({{ assessment.mitigation_actions.count }})
{% for mitigation in assessment.mitigation_actions.all %}
{{ mitigation.title|truncatechars:30 }}
Due: {{ mitigation.due_date|date:"M d, Y"|default:"Not set" }}
{{ mitigation.get_status_display }}
{% endfor %}
{% endif %} {% if assessment.team_members.exists %}
Affected Team Members
{% for member in assessment.team_members.all %}
{{ member.first_name.0|upper }}{{ member.last_name.0|upper }}
{{ member.get_full_name }}
{{ member.email }}
{% endfor %}
{% endif %}
Alternative Actions
Consider these alternatives to permanent deletion:
Edit Instead
Recent Deletions
{% for deleted_assessment in recent_deletions %}
{{ deleted_assessment.title|truncatechars:25 }}
Deleted {{ deleted_assessment.deleted_at|timesince }} ago
{% empty %}

No recent deletions

{% endfor %}
Need help? Contact your system administrator if you're unsure about deleting this assessment.
Cancel
{% endblock %} {% block extra_js %} {% endblock %}