{% extends "base.html" %} {% load static %} {% block title %}Delete Department - {{ department.name }}{% endblock %} {% block content %}

Delete Department

Confirm Department Deletion
Warning!

You are about to delete the department {{ department.name }}. This action cannot be undone.

Please review the impact assessment below before proceeding.

Department Information
Department Name {{ department.name }}
Department Code {{ department.code }}
Department Type {{ department.get_department_type_display }}
Status {% if department.is_active %}Active{% else %}Inactive{% endif %}
Created {{ department.created_at|date:"F j, Y" }}
Impact Assessment
Staff Members

{{ department.staff_count }} staff members

Child Departments

{{ child_departments_count }} child departments

Resources

{{ resources_count }} resources

Appointments

{{ appointments_count }} appointments

{% if has_dependencies %}
Dependencies Found!

This department has active dependencies. Deleting it may cause data inconsistencies.

{% else %}
No Dependencies

This department has no active dependencies and can be safely deleted.

{% endif %}
Alternative Actions
Deactivate Instead

Consider deactivating the department instead of deleting it. This preserves historical data while preventing new assignments.

Deactivate Department
Transfer Dependencies

Transfer staff, resources, and other dependencies to another department before deletion.

Transfer Dependencies
Archive Department

Archive the department to preserve its data while removing it from active use.

Archive Department
{% csrf_token %}
Cancel
{% endblock %}