If you're trying to write "erradicate", but it keeps getting flagged as a misspelling, chances are you actually mean "eradicate". Therefore, my suggestion for the correct spelling would be "eradicate" as it means to completely eliminate or eradicate something, such as a problem or a disease.