The theophany with Joshua (Josh 5:13-5:15)

“Once when Joshua was by Jericho, he looked up and saw a young man standing before him with a drawn sword in his hand. Joshua went to him and said to him. ‘Are you one of us, or one of our adversaries?’ He replied. ‘Neither. But as commander of the army of Yahweh I have now come.’ Joshua fell on his face to the earth and worshiped. He said to him.  What do you command your servant, my lord?’ The commander of the army of Yahweh said to Joshua. ‘Remove the sandals from your feet. For the place where you stand is holy. Joshua did so.”

This is much like the mission of Moses at the burning bush in Exodus, chapter 3. Joshua meets a man standing with a sword. Joshua inquires who he is. The response is that he is the commander of the army of Yahweh. Now Yahweh has his own army. Joshua worships him. Joshua took off his sandals because he was standing on holy ground. Joshua does not meet Yahweh, only the commander of his army.