The domain xxx is not available but can be transferred

I registered a domain to an organization that I then deleted. I now want to register that same domain to a new app since the previous was deleted. Whenever I run flyctl domains register I am prompted with

Error The domain xxx is not available but can be transferred

It is unclear how to transfer a domain especially since the org that the domain was registered to no longer exists.

Hi @dusterthefirst

Are you trying to add an already existing domain to a new organisation?

Then you need to try running flyctl domains add command instead of flyctl domains register.

I am also linking this previous community post that goes into a little bit more about the flyctl domain command you might find helpful.

That did solve my issue. I guess I did not realize that if the org+app was deleted that the domain went to the domain was still registered with fly. It might make sense to change the user-facing error from

Error The domain xxx is not available but can be transferred

to something more like

Error The domain xxx has already been registered and can be added using flyctl domains add
2 Likes