add 'rmPath' method for recursive deletion