diff --git a/onadata/apps/api/viewsets/data_viewset.py b/onadata/apps/api/viewsets/data_viewset.py index 0658d0f9b6..45646ed388 100644 --- a/onadata/apps/api/viewsets/data_viewset.py +++ b/onadata/apps/api/viewsets/data_viewset.py @@ -396,7 +396,10 @@ def destroy(self, request, *args, **kwargs): XFORM_SUBMISSIONS_DELETING_TTL, ) - return Response(status=status.HTTP_200_OK) + return Response( + data={"message": f"{len(instance_ids)} records were deleted"}, + status=status.HTTP_200_OK, + ) if isinstance(self.object, Instance): if request.user.has_perm(CAN_DELETE_SUBMISSION, self.object.xform):