This is for those who have been trying to follow what @Xiphware has tried to outline in this post. You could do the same as outlined in the image shared below:
In the survey tab of your xlsform:
Data entry screen (1) as seen in Enketo:
As soon as you press the OK. You should see the following screen…
Data entry screen (2) as seen in Enketo:
Here, name 2 is automatically marked for deletion. You need not delete the unwanted variables manually. The system deletes for you.
Data as seen in the KoBoToolbox server:
Reference xlsform:
name-to-hide.xlsx (8.7 KB)
Thank you @Xiphware for this wonderful workaround!