I was using terraform to configure my cloudflare zone and records and accidentally deleted the zone for the domain name I purchased via Cloudflare.
The domain still shows on my account and I’ve re-created the site in my Cloudflare account but when I try to manage the domain it takes me to the 404 page. The site shows the DNS as needing to update the nameservers.
An update to a security policy has led to changes in how Cloudflare handles activation when Cloudflare nameservers are detected at the registrar when a domain is added. This applies to adding a domain after deletion as well. You will need to update the nameservers at your registrar. Since Cloudflare is your registrar and you cannot update nameservers of domains registered there, you will need to open a registrar support ticket. I don’t know why it is possible to delete domains that use Cloudflare registrar, but since it is possible, it is important to not delete them.