To walk away means to stop being involved in a situation. It means to do nothing about a situation or not to face negative consequences from it. You could walk away from a difficult situation or a problem such as abusive relationships. You could also walk away from situations that threaten your peace of mind, integrity, and so on.
walk away

Walking away from a difficult situation like an abusive relationship; where one faces emotional, financial, sexual or physical abuse, is something that happens often. Although some people in an abusive relationship are gripped with fear of leaving that relationship, some others have summoned enough courage to walk away.

It is wise for you to walk away when you can, from any situation that you foresee will hurt you or is hurting you already. It is not cowardice to walk away.

Princeton Hines