def METHOD_NAME(self, request):
    qs = Task.objects.filter(id__in=request.data)
    errors = {}
    for task in qs:
        error = self.check_delete_permissions(request, task)
        if error:
            errors[task.name] = error
    if not errors:
        qs.delete()
    return Response(
        errors if errors else {'detail': 'Tasks deleted successfully'},
        status=status.HTTP_400_BAD_REQUEST if errors else status.HTTP_200_OK
    )