{% extends "base.html" %} {% load static %} {% block title %}Delete {{ object.get_full_name }} - User Management{% endblock %} {% block content %}

Delete User Confirmation Required

Confirm User Deletion

Warning: Permanent Deletion

You are about to permanently delete a user account. This action cannot be undone and may affect system audit trails and data integrity.

User Details
Username: {{ object.username }}
Full Name: {{ object.get_full_name }}
Email: {{ object.email }}
Date Joined: {{ object.date_joined|date:"M d, Y" }}
Last Login: {{ object.last_login|date:"M d, Y H:i"|default:"Never" }}
User Status
Active: {{ object.is_active|yesno:'Yes,No' }}
Staff: {{ object.is_staff|yesno:'Yes,No' }}
Superuser: {{ object.is_superuser|yesno:'Yes,No' }}
Groups: {% for group in object.groups.all %} {{ group.name }} {% empty %} None {% endfor %}
Impact Assessment
  • User Sessions: All active sessions will be terminated
  • Audit Logs: Historical audit entries will remain but user references may be broken
  • Created Records: Records created by this user will remain but creator references may be affected
  • Permissions: All user permissions and group memberships will be removed
  • {% if object.is_superuser %}
  • Superuser Access: This user has superuser privileges - deletion will remove administrative access
  • {% endif %} {% if object.is_staff %}
  • Staff Access: This user has staff access to the admin interface
  • {% endif %}
{% if object.is_superuser %}
Superuser Deletion Warning

This user has superuser privileges with full system access.

Ensure there are other superuser accounts available before proceeding with deletion.

{% endif %}
{{ session_count }}
Active Sessions
{{ login_count }}
Total Logins
{{ group_count }}
Group Memberships
{{ permission_count }}
Direct Permissions
Alternative Actions

Consider these alternatives instead of deletion:

  • Reset user password
  • Force logout all sessions
{% csrf_token %}
Deletion Confirmation
{% if object.is_superuser %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}