Standard LibraryTypesstringMethodserase_atOn this pageerase_at Method of string. erase_at(integer pos) -> void Erases the element at the specified position in the container. Parameters pos: The position of the element to erase.