add remove function.

Hi, I tried to add remove function in the same way as replace function.