could use dir->remove()