Use new RCFile.delete() method

Use RCFile.delete() instead of writing our own.