You can't just make up function names and hope the class supports it. Intellisense and Object Browser are your friends.
Rightly so, RichTextBox has nothing to do with deleting files. Look in the System.IO namespace, you'll see the File class that has a Delete(string path) static function.