Shouldn't you assert the file is present and has the contents you want before you remove it?