How to Go Back: Reversing an Astro Frontend on a WordPress Site

How to Go Back: Reversing an Astro Frontend on a WordPress Site

Before you move a WordPress site to an Astro frontend, one question deserves an answer in writing: can we undo it? For a setup where WordPress stays the editor, the answer is yes, and it is a shorter job than most owners expect. It is also spread across four places, and the plugin only handles the first.

This post lists those four places, gives the order we would work in, adds a check you can run before and after, and says what we do not know yet. It uses the Hatch Connect 1.1.0 documentation, the Cloudflare documentation and our developer’s notes, and it is written for owners and agencies who want the exit plan before they commit.

Why going back is possible at all

Hatch does not migrate your content. Your posts, pages, media and users stay in WordPress, and the Astro frontend reads them over a REST API, as we explained in Should You Move From WordPress to Astro? A Checklist, and Who Should Not. Reversing therefore means removing the thing that sits in front, not moving data back.

That also tells you what has to be undone. Four things exist because you connected a frontend: a redirect and saved credentials inside WordPress, a login on a WordPress user account, a Worker in Cloudflare, and an API token in Cloudflare. Each one lives in a different system, so each one has a different owner and a different way to remove it.

What Disconnect does, and what it leaves for you

The Hatch documentation for disconnecting and removing the Worker (updated 30 October 2026, read 28 November 2026) lists what the Disconnect button does. Our developer confirmed the main points against the released plugin: Disconnect stops the redirect and the refresh, forgets the saved token and the frontend login, and deletes nothing in Cloudflare.

ItemDoes Disconnect handle it?Who finishes the job
The redirect from WordPress to the frontendYes, it stopsNobody; check it with the test below
The Cloudflare token that Hatch savedYes, the stored copy is deletedYou revoke the token itself in Cloudflare
The frontend account name and its encrypted Application Password in HatchYes, Hatch forgets themYou revoke the Application Password on the user profile
Permalink, sitemap and robots.txt rewriting for the frontendYes, it stopsNobody
The Application Password on the user profileNo, Hatch did not create itYou, in Users in wp-admin
The Worker in your Cloudflare accountNoYou, in Cloudflare
A custom domain route, if you set oneNoYou, in Cloudflare. We have not tested custom domains
Security and performance switches you turned on in HatchNo. Disconnect clears only the connection records (from code reading, not run)You, in the Security and Performance tabs

The last row matters more than it looks. Our developer read the code and found that Disconnect clears the token, the frontend login, the frontend and refresh addresses and the deploy state, and nothing else. Fortress Mode, the XML-RPC switch, hidden usernames, lockouts and the REST lock all stay as you set them. We read this in the code and did not run it. One switch needs a warning: if the Performance tab switch that turns off WordPress feeds is on, the feed addresses answer with a 410 “Feed disabled by Hatch (headless mode)” after Disconnect, because with no frontend address they have nowhere to redirect. Review the Security and Performance tabs, especially feeds, before you walk away.

The order we would work in

The order matters because the first step is the only one that changes what visitors see. Do it while you can watch the site, and leave the Cloudflare clean-up until you have checked that WordPress is serving normally.

  1. Write down what you have. Before you click anything, note the Worker name, the Cloudflare account, the name of the API token and the WordPress user that the frontend signs in as. If someone else set it up, ask them now.
  2. Press Disconnect. In wp-admin open Hatch, go to the Connection tab and press Disconnect. If a deploy is running, Hatch asks you to wait for it to finish.
  3. Check WordPress is serving. Run the check in the next section, then open a few pages while signed out.
  4. Revoke the Application Password. Go to Users, open the frontend’s low-privilege account and revoke its Application Password. WordPress lets you view and revoke application passwords from the Edit User page, as the WordPress core integration guide describes.
  5. Delete the Worker. In the Cloudflare dashboard open Workers & Pages, select the Worker, open Settings, scroll to the bottom, select Delete and type the Worker name to confirm. Cloudflare documents these steps in its D1 get started guide (updated 22 November 2026, read 28 November 2026). From a terminal, npx wrangler delete --name does the same job, and the Wrangler commands page (updated 26 October 2026) shows a --dry-run option that deletes nothing. The command deletes the Worker and its bound resources, so read the name twice.
  6. Revoke the Cloudflare API token if you will not reconnect. Cloudflare’s tunnel permissions page (updated 17 April 2026) shows the dashboard route for a user token: My Profile, API Tokens, the three dots, Delete. An account-owned token is managed elsewhere, so use the token page you created it on.
  7. Decide about the plugin. Keep it installed, or delete it. See the section on deactivating below.
Diagram of four steps for reversing an Astro frontend: press Disconnect in WordPress, revoke the Application Password, delete the Worker in Cloudflare, revoke the Cloudflare API token.
The four places to undo, in order. Steps 2 to 4 are yours: Disconnect deletes nothing in Cloudflare.

We have not yet walked through the Cloudflare steps ourselves on a live account, and our own real-account test run is still to come. The steps above come from the Hatch and Cloudflare documentation and from our developer’s review of the plugin, not from a recorded run, and the Cloudflare screens may be worded differently on your account.

A check you can copy before and after

While Hatch is connected, a signed-out request for a WordPress address is sent to the frontend with a temporary redirect. After Disconnect it should be answered by WordPress. This command prints the status code and the address it is redirected to, and changes nothing. Replace the address with one of your own posts.

curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://example.com/your-post/
WhenWhat we expectWhy
Connected302, with a frontend address in the second columnHatch sends signed-out visitors with a temporary redirect (our developer’s tests of 1.1.0)
After Disconnect200, with nothing in the second columnThe redirect stops, per the Hatch docs
After the Worker is deletedThe frontend address no longer serves your siteThe Worker is gone; the exact error page is Cloudflare’s, and we did not record it

Treat the first two rows as expectations to confirm, not as results we recorded after a full Cloudflare run. If your post address does not behave this way, stop and read your permalinks first: our URLs post explains what changes and what does not.

Why deactivating is not the same as going back

Deactivating the plugin feels like the obvious undo. The uninstall documentation says that Hatch’s clean-up routine runs only when you delete the plugin: deactivating or updating it removes nothing, so the saved token stays until the plugin is deleted.

Our developer also read the code for what deactivation does to a connected site, and has not tested it. The Worker keeps running in Cloudflare. The redirect stops because the plugin is no longer loaded. The REST routes that the frontend reads also disappear, so frontend pages may fail to load. Deactivation also keeps the frontend login on purpose, so reactivating does not break the frontend, and it clears Hatch’s scheduled checks. In short, deactivating can leave a live Worker pointed at a site that no longer answers it. Disconnect first, delete the Worker second and only then deactivate or delete the plugin.

If you do delete the plugin, the uninstall guide lists what always goes (the encrypted deploy token, stored secrets and the frontend’s stored login) and what stays unless you tick Remove all data on uninstall. It also says Hatch never touches the Worker.

What to read on your own site afterwards

  • Open your home page, a post, a page and a category signed out, and read them as a visitor would.
  • Search your own pages for links that point to the frontend address. Anyone you shared a frontend link with during a trial will find it stops working once the Worker is deleted.
  • Review the Hatch Security and Performance tabs, especially the feeds switch, as described above.
  • Keep the exit notes from step one with the site documentation, so the next person does not start from nothing.

We make no claim here about search results, rankings or traffic after a reversal, and we have not measured any. The redirect for page addresses is temporary, so nothing here depends on a permanent move being undone for pages. If you turned on the feeds switch, the feed redirect to the frontend is permanent, a 301, and that is one more reason to check your feed addresses.

Where Host My Blog fits

We make Hatch Connect, a free WordPress plugin that deploys an Astro frontend to a Cloudflare Worker in your own Cloudflare account, using one API token. You keep writing in WordPress. Version 1.1.0 is released, Cloudflare is the only deploy target today, and other targets are planned with no date.

The exit plan is part of that design, not an extra. Disconnect forgets the credentials Hatch holds, and deleting the Worker and the token is something you do in your own account, which means the account and its keys stay yours. We do not know yet how long a reversal takes on a large site, so we give no timing. Try the whole cycle on a staging site first.

Frequently asked questions

Can I undo moving to Astro? With Hatch, yes: your content never left WordPress. Press Disconnect, check that WordPress serves your pages, revoke the Application Password, delete the Worker and revoke the Cloudflare token.

Does Disconnect delete my Cloudflare Worker? No. The Worker lives in your own Cloudflare account and keeps running until you delete it there.

Is deactivating the plugin enough? No. Deactivating removes nothing, and by our developer’s reading of the code it can leave a running Worker with nothing to read from. Disconnect first.

Will my site look the same afterwards? We have not compared before and after on a real site, so we cannot promise that. Open the pages that matter to you while signed out and read them.

If you had to reverse your own frontend tomorrow, which of the four places would you not know how to reach?

Share
Aditya Sharma
Aditya Sharma

Aditya runs Host My Blog and writes The Cited. Five years in WordPress, most of it spent on what actually makes a blog get found rather than what is supposed to. His attention now goes to how AI answers are changing that, and what a blog has to do to still be the source people land on. Everything he writes about here gets tested on the blogs Host My Blog looks after before it reaches the page.

No comments yet

Be the first to comment.

Write a comment

Leave a comment