What issues does the story of the fall of Jericho raise for divine command theory?

Click on the highlights button to show highlighted text. Why do you think this text has been highlighted?

Hints: what did Joshua’s men do when they ‘devoted the city to the Lord’? Is there such a thing as a command that we would never follow no matter who told us to do it (even God)? Would we have followed this command to kill men, women and children? If this command is abhorrent, then how do we decide which of God’s commands to follow and which to ignore?

Joshua 5:13 -15; 6:21-24
New International Version (NIV)

13 Now when Joshua was near Jericho, he looked up and saw a man standing in front of him with a drawn sword in his hand. Joshua went up to him and asked, “Are you for us or for our enemies?”

14 “Neither,” he replied, “but as commander of the army of the LORD I have now come.” Then Joshua fell facedown to the ground in reverence, and asked him, “What message does my Lord[e] have for his servant?”

15 The commander of the LORD’s army replied, “Take off your sandals, for the place where you are standing is holy.” And Joshua did so.

6 Now the gates of Jericho were securely barred because of the Israelites. No one went out and no one came in.

2 Then the LORD said to Joshua, “See, I have delivered Jericho into your hands, along with its king and its fighting men.

21 They devoted the city to the LORD and destroyed with the sword every living thing in it-men and women, young and old, cattle, sheep and donkeys.

22 Joshua said to the two men who had spied out the land, “Go into the prostitute’s house and bring her out and all who belong to her, in accordance with your oath to her.” 23 So the young men who had done the spying went in and brought out Rahab, her father and mother, her brothers and sisters and all who belonged to her. They brought out her entire family and put them in a place outside the camp of Israel.

24 Then they burned the whole city and everything in it, but they put the silver and gold and the articles of bronze and iron into the treasury of the LORD’s house. 25 But Joshua spared Rahab the prostitute, with her family and all who belonged to her, because she hid the men Joshua had sent as spies to Jericho—and she lives among the Israelites to this day.