When removing a domain from the registry, the registrar threw the error: "Error deleting this Domain: This subdomain is being used as a hostname on another domain."
We should go ahead and automatically remove the subdomain nameservers first as part of our delete process. Right now on delete we are just removing the domain from the registry. We do not remove the hosts or contacts. We originally didn’t add in a check on the subdomain thing because we were not storing nameservers. Now we are are storing nameservers so it is not overly complex for us to just check for where it is in use and auto remove if it is just in use on the current domain.
Additionally, if the subdomain is in use on another domain we should have a friendly error that shows for you saying “Can’t delete because a subdomain of this domain is in use on: "
Acceptance criteria
[ ] remove the subdomain nameservers first as part of our delete process.
[ ] remove contacts as part of our delete process
[ ] When user deletes a domain and the only place that domain's child hosts are used are on that domain, do not throw errors.
[ ] If the subdomain is in use on another domain, inform user with error message (e.g., “Can’t delete because a subdomain of this domain is in use on: ")
Issue description
When removing a domain from the registry, the registrar threw the error: "Error deleting this Domain: This subdomain is being used as a hostname on another domain."
We should go ahead and automatically remove the subdomain nameservers first as part of our delete process. Right now on delete we are just removing the domain from the registry. We do not remove the hosts or contacts. We originally didn’t add in a check on the subdomain thing because we were not storing nameservers. Now we are are storing nameservers so it is not overly complex for us to just check for where it is in use and auto remove if it is just in use on the current domain.
Additionally, if the subdomain is in use on another domain we should have a friendly error that shows for you saying “Can’t delete because a subdomain of this domain is in use on: "
Acceptance criteria
Additional context
Slack thread
Links to other issues
No response