Naive implementation of remove.