removeNavigation

This function exit from navigation and remove path either on navigation mode or not.