It solved the original Ozymandius ... and countless other similar folks before him.
Actually, Shelly never explained what happened to my sort-of namesake. Since the poem was supposedly set in Egypt, his successors probably just chiseled his name off the monuments and added their own.