doctest for remove