improve script to find (and delete) outdated docs