def delete_view(self, request, object_id, extra_context=None):
        parent_folder = None
        try:
            obj = self.queryset(request).get(pk=unquote(object_id))
            parent_folder = obj.parent
        except self.model.DoesNotExist:
            obj = None

        r = super(FolderAdmin, self).delete_view(
            request=request, object_id=object_id,
            extra_context=extra_context)
        url = r.get("Location", None)
        if url in ["../../../../", "../../"] or url == self._get_post_url(obj):
            if parent_folder:
                url = reverse('admin:filer-directory_listing',
                              kwargs={'folder_id': parent_folder.id})
            else:
                url = reverse('admin:filer-directory_listing-root')
            url = "%s%s%s" % (url, popup_param(request),
                              selectfolder_param(request, "&"))
            return HttpResponseRedirect(url)
        return r
Handles the protocol for sending data to the device.
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/media/admin/folder/admin.py/FolderAdmin.delete_view--crossover with--dataset/ETHPy150Open google/python-adb/adb/fastboot.py/FastbootProtocol.HandleDataSending