imfile: add "deletestateonfiledelete" config parameter