Implement remove command.