Skip to content
Notis

Retire a Cloudflare DNS record when a hostname is renamed

A renamed project or service can leave an old hostname behind. Let Notis act on the OneDrive move or rename only when your retirement rule and record identity are clear.

Trigger

Item Moved or Renamed

Triggers when a file or folder is moved to a different path or renamed in OneDrive. Includes both old and new path/name data in the payload.

Action

Delete DNS Record

Tool to delete a DNS record. Use when you need to remove a specific DNS record from a zone after confirming both zone and record IDs.

Why this helps

Old hostnames can linger in DNS after a team renames a service, creating cleanup work that is easy to overlook.

  • Use rename or move activity to surface hostname retirement work.
  • Apply a defined cleanup rule to the matching DNS record.
  • Avoid manually revisiting Cloudflare for every renamed project.

Setup

Build it in a few focused steps.

  • 1Connect OneDrive and Cloudflare api key once in the Notis portal.
  • 2Create an automation telling Notis which rename or move events mean a hostname is retired and how to identify the exact Cloudflare zone and record.
  • 3Pick the OneDrive Item Moved or Renamed trigger.
  • 4Choose where run reports should go.
  • 5Test with one real rename and confirm the intended record before relying on the automation.

Questions about this workflow

Will every rename delete a DNS record?

Your instruction should limit deletion to confirmed retirements. A rename event alone does not prove that a hostname is no longer needed.

What identifiers are needed to delete the record?

The exact zone and DNS record identifiers must be known. If the event or your context does not provide them, instruct Notis to report the missing information instead of deleting.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link One drive to Cloudflare api key. A trigger fires from one place; an action lands in another.

One drive triggers

Cloudflare api key actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Create DNS Record

Tool to create a new DNS record in a Cloudflare zone. Use when you need to add a record (A, CNAME, TXT, MX, etc.) to a specified zone.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Create Zone Lockdown Rule

Tool to create a Zone Lockdown rule. Use when you need to restrict access to specific URL patterns to defined IPs/CIDR ranges. Use after confirming zone_id.

ActionInstant

Onedrivebasetrigger

Base trigger for OneDrive changes using Gmail-style state management. Subclasses override `filter_changes(...)` to extract only the relevant items.

TriggerPolling

Create Rule in Ruleset

Tool to add a rule to an existing ruleset. Use when you need to append or insert a new rule in a Cloudflare ruleset.

ActionInstant

OneDrive File Created Trigger

Triggers when a new file is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

TriggerPolling

Create Ruleset

Tool to create an account- or zone-scoped ruleset. Use after defining your ruleset details and selecting the correct scope.

ActionInstant

File Updated

Trigger that fires when a OneDrive file's content or metadata changes. Returns file ID, last modified time, and modifier info.

TriggerPolling

Delete DNS Record

Tool to delete a DNS record. Use when you need to remove a specific DNS record from a zone after confirming both zone and record IDs.

ActionInstant

OneDrive Folder Created Trigger

Triggers when a new folder is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

TriggerPolling

Delete DNSSEC

Tool to delete DNSSEC records for a zone. Use after disabling DNSSEC at the registrar to remove DNSSEC configuration.

ActionInstant

OneDrive Item Deleted Trigger

Triggers when a file or folder is deleted in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

TriggerPolling

Delete Rule from Ruleset

Tool to delete a specific rule from a ruleset. Use when you need to remove an outdated or incorrect rule from an account or zone ruleset after confirming IDs.

ActionInstant

Item Moved or Renamed

Triggers when a file or folder is moved to a different path or renamed in OneDrive. Includes both old and new path/name data in the payload.

TriggerPolling

Delete Ruleset

Tool to delete all versions of a ruleset. Use when you need to remove a ruleset from an account or zone after confirming no references exist.

ActionInstant

Connect any two apps with Notis in the middle.

One drive and Cloudflare api key, or any other combination from 1,000+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Cloudflare api key.