How do I pull an item with specific index from an array in MongoDB? (javascript)

I have the following array in mongoDB:
[tomato, lemon, apple, orange]

and I want to remove the third item(index 2) of the array,
however I cannot use $pull since I do not know what is the current value of the of the third item, it is apple now but it could be lemon later,
so how do I remove an item from a specific index in a MongoDB array and not by value?