I did a similar thing on my configuration, basically you can create a SQL script to rename the domain to something else, or delete all entries with domain=DOMAIN...
The way I see it the domain is incorporated in the database and not the webpage, so you need to modify that.
Either that or the view, which is in the database as well but references values in the other tables.
Hope that helps 😄