code: def delete(self, request, id=None):
          
          if id:
              obj = get_object_or_404(self.queryset(request), id=id)
              if not self.has_delete_permission(request, obj):
                  return HttpResponseForbidden(_('You do not have permission to perform this action.'))
              else:
                  return self.delete_object(request, obj)
          else:
              # No delete requests allowed on collection view
              return HttpResponseForbidden()
docs: Handles delete requests.