Cleaning up removal of file functions.