Thanks for the reply! I figured from this thread that it wasn't anything malicious from Gitbook's side and more of a Cloudflare bug, so it's good to hear your explanation!
Edit: Oh also, I did remove the domain from Gitbook so you should really remove it at that point no?
We only remove the domain from Cloudflare when the content is deleted. The main reason is to avoid broken links when users update their domain on GitBook.
Ex:
1. You configure docs.mycompany.com with your GitBook space
2. You share links to docs.mycompany.com on social medias
3. You update the domain to docs.anothercompany.com
4. It's better if the docs.mycompany.com links can continue working until you remove the DNS entry
In summary, we want the users to decide through their DNS config when GitBook should serve the content or not to avoid breaking links without an intentional action from the user.
Unfortunately, because of how Cloudflare doesn't use the DNS configuration to decide where to route the traffic, it causes issues atm. We'll look at what we can do on our side to mitigate this.
Edit: Oh also, I did remove the domain from Gitbook so you should really remove it at that point no?