Hey, sorry for the late reply. I overloaded my feed and missed a bunch of replies.
You can either track by UID or by an instance variable that ties the text and sprite objects together. I think the instance variable would be easier for you.
You want to add an instance variable named "id" (or whatever) to both the Text and Sprite objects that you are using and add a number for each of them that correspond together, e.g. your 'C' Text would have an id=3 and your red box Sprite would have an id=3, while 'B' would be id=2 and your green box Sprite would be id=2, and your 'A' would be id=1 and your blue box Sprite would be id=1.
Then when the user clicks on the red box, you can check the id of the box that was clicked on versus the id of each text box and delete the corresponding text and then move the remaining sprites/text up.