Skip to content

fahamjv/cloudflare-bulk-dns-delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Bulk DNS Delete

This repository provides a PHP script for bulk deleting DNS records in Cloudflare using the Cloudflare API.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • PHP installed on your local machine or server.
  • Composer installed for managing dependencies.
  • A Cloudflare account with an active Zone ID.
  • Cloudflare API Token with the necessary permissions.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/fahamjv/cloudflare-bulk-dns-delete.git
  2. Change to the project directory:

    cd cloudflare-bulk-dns-delete
  3. Install the required dependencies using Composer:

    composer install

Usage

  1. Get your tokens

    Cloudflare Zone ID https://dash.cloudflare.com/.

    API token https://dash.cloudflare.com/profile/api-tokens

  2. Copy the .env file

    cp .env.example .env
  3. Open the .env file and fill it with your tokens:

    ZONE_ID=
    API_TOKEN=
  4. Run the script:

    php main.php

    The script will start deleting DNS records in batches. It will handle rate limiting and retries for failed deletions.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages