{% extends "base.html" %} {% load static %} {% block title %}Delete Audit - Quality Management{% endblock %} {% block content %}
You are about to permanently delete this audit. This action cannot be undone and will remove all associated data including findings, corrective actions, and audit history.
| Title: | {{ audit.title }} |
| Type: | {% if audit.audit_type == 'internal' %} Internal {% elif audit.audit_type == 'external' %} External {% elif audit.audit_type == 'regulatory' %} Regulatory {% elif audit.audit_type == 'accreditation' %} Accreditation {% endif %} |
| Status: | {% if audit.status == 'planned' %} Planned {% elif audit.status == 'in_progress' %} In Progress {% elif audit.status == 'completed' %} Completed {% elif audit.status == 'cancelled' %} Cancelled {% endif %} |
| Department: | {{ audit.department.name|default:"All Departments" }} |
| Scheduled: | {{ audit.scheduled_date|date:"F d, Y"|default:"Not scheduled" }} |
| Lead Auditor: | {{ audit.lead_auditor.get_full_name|default:"Not assigned" }} |
| Created: | {{ audit.created_at|date:"F d, Y" }} |
| Findings: | {% if audit.findings_count > 0 %} {{ audit.findings_count }} finding{{ audit.findings_count|pluralize }} {% else %} No findings {% endif %} |
Consider these alternatives before deleting the audit:
Change the audit status to "Cancelled" instead of deleting. This preserves the audit record while indicating it was not completed.
{% if audit.status != 'cancelled' %} {% else %} Already cancelled {% endif %}Archive the audit to remove it from active lists while preserving all data for compliance and historical purposes.
{% if not audit.is_archived %} {% else %} Already archived {% endif %}This audit is currently in progress. Consider completing or cancelling it instead of deleting to maintain audit trail integrity.
If you're unsure about deleting this audit, contact: