remove directories and symlinks