That’s history.
Have you ever read the Book of Joshua?
You know, where Joshua exterminates seven entire nations because G-d commanded him to?