Delete Cloudflare Pages site

Viewed 13

I have a production site running through Cloudflare workers and pages. I'd like to delete it and take it down so I can use the domain for something else. How do I do that?

2 Answers

I'd be happy to help!

To delete a Cloudflare Pages site, you'll need to follow these steps:

Step 1: Access your Cloudflare account

  • Go to the Cloudflare dashboard by logging in to your account at cloudflare.com.
  • Make sure you have the correct account and login credentials.

Step 2: Navigate to the Pages tab

  • In the top navigation menu, click on the "Pages" option.
  • This will take you to the Pages overview page, where you can manage your sites.

Step 3: Find the site you want to delete

  • In the Pages overview page, find the site you want to delete. You can filter the list by domain or ID to make it easier to find the site.
  • Click on the three vertical dots next to the site's name to open the site's options menu.

Step 4: Delete the site

  • In the site options menu, click on the "Delete site" option.
  • Confirm that you want to delete the site by clicking "Delete site" in the pop-up window.

Step 5: Remove Cloudflare worker scripts

  • Since you mentioned you're using Cloudflare Workers, you'll need to remove the worker scripts before deleting the site.
  • Go to the "Workers" tab in the top navigation menu.
  • Find the worker script associated with the site you're deleting and click on the three vertical dots next to it.
  • Click "Delete worker" to remove the script.

Step 6: Remove DNS settings (if applicable)

  • If you set up DNS settings for the site, you'll need to remove them to prevent the site from still being accessible.
  • Go to the "DNS" tab in the top navigation menu.
  • Find the DNS records related to the site and delete them.

Step 7: Verify the site is deleted

  • After deleting the site, go back to the Pages overview page to verify that the site is no longer listed.

Important notes:

  • Make sure you've removed any Cloudflare worker scripts associated with the site.
  • Delete any DNS settings related to the site to prevent it from still being accessible.
  • Be cautious when deleting a site, as it may affect other services or projects relying on the site.

By following these steps, you should successfully delete your Cloudflare Pages site. Remember to remove any associated worker scripts, DNS settings, and other resources to ensure the site is fully deleted.

To delete a Cloudflare Pages site and free up your domain for use elsewhere, follow these steps:

  1. Log in to Cloudflare:

  2. Navigate to Cloudflare Pages:

    • On the Cloudflare Dashboard, select the account in which your Cloudflare Pages project is located.
    • In the left sidebar, scroll down and click on "Pages".
  3. Select the Project to Delete:

    • Find the project that you want to delete from the list of your Cloudflare Pages projects.
    • Click on the project to open its details page.
  4. Access Project Settings:

    • Once you’re on the project’s overview page, look for the "Settings" tab at the top of the screen and click on it.
  5. Delete the Project:

    • Scroll down within the "Settings" page until you find the "Danger Zone" section.
    • Within the "Danger Zone", there will be an option to "Delete this project". Click on that option.
    • You may be asked to confirm the deletion. Confirm that you want to delete the project.
  6. Reconfigure Your DNS Records:

    • After you’ve deleted your Cloudflare Pages project, the next step is to reconfigure your DNS settings if you plan to use the domain for another service.
    • Go back to the Cloudflare Dashboard main screen for the domain.
    • Click on the “DNS” tab in the left sidebar.
    • Remove any DNS records that are associated with the deleted Cloudflare Pages project.
    • Add new DNS records as required for your new setup.
  7. Ensure Workers Configuration is Updated:

    • If your site was using Cloudflare Workers in conjunction with Pages, ensure that any Workers routes or Workers settings are also updated or removed to avoid any remaining configurations that might point to the now-deleted Pages site.
  8. Verification:

    • To ensure the deletion process was successful, try accessing your domain. The site should no longer be live.
    • You can also check within your Cloudflare account to ensure the Pages project no longer exists.

By following these steps, you will have successfully deleted your Cloudflare Pages site and freed up the domain for other uses.