debug file delete fix