new db: Purge directory->path.

Not tested at all. But it compiles.