remove few erase methods due to cross-platform compatibility issue