Skip to content
at-sign

GitHub Action

Delete DNS Record

v1 Latest version

Delete DNS Record

at-sign

Delete DNS Record

Deletes CloudFlare DNS record

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Delete DNS Record

uses: kriasoft/delete-dns-record@v1

Learn more about this action in kriasoft/delete-dns-record

Choose a version

Delete DNS Record Action for GitHub

Deletes CloudFlare DNS record by ID or record name.

Usage

name: example
on:
  pull_request:
    type: [closed]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: kriasoft/delete-dns-record@v1
        with:
          name: "{PR}-review.example.com"
          token: ${{ secrets.CLOUDFLARE_TOKEN }}
          zone: ${{ secrets.CLOUDFLARE_ZONE }}

License

The scripts and documentation in this project are released under the MIT License.