Berean Standard Bible (BSB)
you must do to him as he intended to do to his brother. So you must purge the evil from among you.
World English Bible (WEB)
then you shall do to him as he had thought to do to his brother: so you shall put away the evil from the midst of you.
Strong's King James
Then shall ye do{H6213}{(H8804)} unto him, as he had thought{H2161}{(H8804)} to have done{H6213}{(H8800)} unto his brother{H251}: so shalt thou put{H1197} the evil{H7451} away{H1197}{(H8765)} from among{H7130} you.
The F.O.G *
The F.O.G Message *
Young's Literal Translation
‘Then ye have done to him as he devised to do to his brother, and thou hast put away the evil thing out of thy midst,