Added debug logging around delete file