Don't delete the line in the db when you delete a domain, just unset it from the user, and let deleteDomains handle the actual deletion.. duh..