Skip to main content

This endpoint allows you to delete a specific rule from your Requestly account using its unique ruleId.
Use this API call to permanently remove a rule that is no longer required.
For a live view and to test this API interactively, visit the API Playground.

Endpoint

  • Method: DELETE
  • URL: https://api2.requestly.io/v1/rules/{ruleId}

Path Parameters

ParameterTypeDescriptionRequired
ruleIdStringThe unique ID of the rule to be deleted.Yes

cURL Example

curl --request DELETE \
  --url https://api2.requestly.io/v1/rules/Redirect_a9qau \
  --header 'accept: application/json' \
  --header 'x-api-key: your_api_key'

Sample Response

{
  "success": true,
  "message": "Rule deleted successfully"
}

Response Codes

Status CodeDescription
200Rule deleted successfully.
400Invalid rule pairs or payload.
401Unauthorized action.
404Rule or group not found.
405Rule type update not allowed.
429Too many requests.