Standard LibraryTypesstringMethodseraseOn this pageerase Method of string. erase(const string value) -> bool Removes the first occurrence of the specified value from the container. Parameters value: The value to remove.