Change the file remove to a virtual function in recovery