latest version of removechainfile()