code: def delete_view(self, request, object_id, extra_context=None):
          
          if not extra_context:
              extra_context = {}
          extra_context['is_popup'] = request.REQUEST.get('_popup', 0)
          return super(EnhancedAdminMixin, self).delete_view(request, object_id, extra_context)
docs: Sets is_popup context variable to hide admin header.