(remove loc)
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.