Domains set up during Wizard

During the first time login after finished installation, I’ve given choices of Domains to install.

Some domains are installed under a company “test”.

Now we’ve added a few other companies afterward, and deleted the “test” company.

Now all the installed domains are kind of broken because lots of Accounts - test are gone.

How do I re-configure it?