remove ~"foo"