Here is how:
string RemoveOnlyCharacterFromString(string value) { return string.Empty; }
Explanation: a content of a string is some characters and nothing else. Removing of them, only, should be understood as removing all of the, because there is nothing else.
The question probably based in incorrect understanding of the word "character", which does not make it correct.
Good luck,
—SA