remove dangling directory