Having upgraded to 4.7 in a subdirectory and then moved the site up to the root, I now have the problem that url paths all have the subdirectory in them.

eg. href="/subdirectory/node/34"

How can I get rid of the subdirectory? Is it possible to remove the string ('/subdirectory') throughout the database automatically? Does anyone have a script to do this? It would be tedious in the extreme to have to go through manually deleting the subdirectory from every path.