Batch Remove junk dns records

There are numerous unnecessary DNS records added for my website in Cloudflare and I am unable to eliminate them one by one, Is there a way to remove them in batches?

Yes via the API

To batch remove DNS records for your website on Cloudflare, you can use the Cloudflare API. Here’s a step-by-step guide:

  1. Obtain your API key from the Cloudflare dashboard.
  2. Use the “List DNS Records” API endpoint to get the IDs of the DNS records you want to delete.
  3. Use the “Delete DNS Record” API endpoint to remove each record by its ID.

For detailed instructions and API documentation, visit: Cloudflare API Documentation

Alternatively, you can use community-created tools like the one available at GitHub - Cyb3r-Jak3/cloudflare-utils: Helpful Cloudflare utility program to simplify the process

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.