trying delete with open/closedir combination