How to make my 7yrs. Old child get away from nad friends as he's being agressive, says bad words and to attract him to better friends?

See below. Talk to your child about his choice of friends. Ask him why he wants to spend time with the kid you consider a bad influence -- what is it about the child that makes him so appealing? Limit time spent with the bad friend. Encourage spending time with more acceptable friends. Tell him why you are concerned...Or invite the friend and family over to dinner to get to know him/his family better.