The word "walk" here is a metaphor for the way a person lives his life, especially whether he does right or does wrong. Alternate translation: "stop living the way the Gentiles live, with their worthless thoughts" (See: [[rc://en/ta/man/jit/figs-metaphor]])