deleting directories
check directories