removeNamespace.php --id 104 --canonicalnamespace "Foo"
canonicalnamespace is the canonical namespace text for the just-removed namespace.
Find links with pl_namespace 104, then change pl_namespace to 0 and pl_title "Foo:" + pl_title.
E.g. if it was (104,Bar), now it's (0,Foo:Bar), as if the link was reparsed and the namespace didn't exist.
There shouldn't be any with pl_from_namespace 104 unless someone just removed a namespace with active pages(!).
Needs to be hookable so Flow can do the equivalent in its internal link tables.