Delete rulesets · Cloudflare Ruleset Engine docs | Latest TMZ Celebrity News & Gossip | Watch TMZ Live Skip to content
Cloudflare Docs

Delete rulesets

You can use the API to delete all the versions of a ruleset or delete a specific version of a ruleset.

Delete ruleset

Deletes all the versions of an existing ruleset at the account or zone level.

Use one of the following API endpoints:

OperationMethod + Endpoint
Delete an account rulesetDELETE /accounts/{account_id}/rulesets/{ruleset_id}
Delete a zone rulesetDELETE /zones/{zone_id}/rulesets/{ruleset_id}

If the delete operation succeeds, the API method call returns a 204 No Content HTTP status code.

Example

The following example request deletes an existing ruleset with ID $RULESET_ID.

Required API token permissions

At least one of the following token permissions is required:
  • Mass URL Redirects Write
  • Magic Firewall Write
  • L4 DDoS Managed Ruleset Write
  • Transform Rules Write
  • Select Configuration Write
  • Account WAF Write
  • Account Rulesets Write
  • Logs Write
Delete an account ruleset
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/rulesets/$RULESET_ID" \
--request DELETE \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

Delete ruleset version

Deletes a specific version of a ruleset.

Use one of the following API endpoints:

OperationMethod + Endpoint
Delete an account ruleset versionDELETE /accounts/{account_id}/rulesets/{ruleset_id}/versions/{version_number}
Delete a zone ruleset versionDELETE /zones/{zone_id}/rulesets/{ruleset_id}/versions/{version_number}

If the delete operation succeeds, the method call returns a 204 No Content HTTP status code.

Later updates to the ruleset will not reuse the version number of a deleted ruleset version.

Example

The following example request deletes a version of an existing ruleset.

Required API token permissions

At least one of the following token permissions is required:
  • Mass URL Redirects Write
  • Magic Firewall Write
  • L4 DDoS Managed Ruleset Write
  • Transform Rules Write
  • Select Configuration Write
  • Account WAF Write
  • Account Rulesets Write
  • Logs Write
Delete an account ruleset version
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/rulesets/$RULESET_ID/versions/$RULESET_VERSION" \
--request DELETE \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.