Beta. The routing rules endpoints are new and their response shapes may
still change.
Permanently deletes one routing rule. It stops applying right away.You need the owner or manager role on the rule’s domain. Viewers get 403 forbidden.
To turn a rule off temporarily, update it
with "isActive": false instead. The rule is kept, so you can turn it back
on later.
Always call this endpoint from a server-side environment (backend API, serverless function, build script, etc.). Never include your API key in client-side code — it will be visible to anyone inspecting your frontend.
API access is available on every plan. Each key has a monthly call quota
that varies by plan — see Plan Limits.
Request
Headers
Header
Required
Description
Authorization
Yes
Bearer hado_sk_your_key_here
Path Parameters
Parameter
Type
Required
Description
domainId
string
Yes
The ID of the domain the rule belongs to, from List Domains.
Rate limit exceeded. The code is rate_limit_exceeded_monthly or rate_limit_exceeded_per_minute — match on the rate_limit_exceeded prefix to catch both.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hado SEO","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/hadoseo/oSBCNWyhDfd0L3ab/logo/light.svg?fit=max\u0026auto=format\u0026n=oSBCNWyhDfd0L3ab\u0026q=85\u0026s=8185b5b46b3506634c57dd911a2c7f6f","dark":"https://mintcdn.com/hadoseo/oSBCNWyhDfd0L3ab/logo/dark.svg?fit=max\u0026auto=format\u0026n=oSBCNWyhDfd0L3ab\u0026q=85\u0026s=f1cc3737e73795aeb37ed00301226af3","href":"https://hadoseo.com"},"favicon":"https://mintcdn.com/hadoseo/oSBCNWyhDfd0L3ab/favicon.svg?fit=max\u0026auto=format\u0026n=oSBCNWyhDfd0L3ab\u0026q=85\u0026s=4b7dae1703412d1884a4e419e84b4e77","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://hadoseo.com/auth"}},"footer":{"socials":{"x":"https://x.com/hado_seo","github":"https://github.com/hado-seo","linkedin":"https://www.linkedin.com/company/hado-seo","discord":"https://discord.gg/wStW7rFvrF"}},"seo":{"metatags":{"canonical":"https://docs.hadoseo.com"}},"integrations":{"plausible":{"domain":"docs.hadoseo.com"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://hadoseo.com/dashboard"},{"anchor":"Blog","icon":"newspaper","href":"https://hadoseo.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hadoseo","hasAudioNarration":false,"actualSubdomain":"hadoseo","customDomains":["docs.hadoseo.com"],"gitSource":{"type":"github","owner":"hado-seo","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aedf42b401eb2c0a9490bd2","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Reference","count":20},{"language":"default","tag":"Integrations","count":18},{"language":"default","tag":"Endpoints","count":10},{"language":"default","tag":"Tips \u0026 Tricks","count":10},{"language":"default","tag":"Troubleshooting Guides","count":7},{"language":"default","tag":"Features","count":6},{"language":"default","tag":"Dashboard","count":6},{"language":"default","tag":"Introduction","count":6},{"language":"default","tag":"Routing Rules","count":5},{"language":"default","tag":"MCP Server","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".nav-logo{padding-top:30px;max-width:200px!important;max-height:80px!important;width:auto!important;height:auto!important}"}],"page":{"pagePath":"api-reference/endpoint/delete-routing-rule","slug":"/api-reference/endpoint/delete-routing-rule","pageMetadata":{"title":"Delete Routing Rule","description":"Permanently remove a redirect or proxy rule","href":"/api-reference/endpoint/delete-routing-rule"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Permanently remove a redirect or proxy rule\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DELETE /functions/v1/domains/{domainId}/routing-rules/{ruleId}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Beta.`}),` The routing rules endpoints are new and their response shapes may\nstill change.`]})}),`\n`,_jsxs(_components.p,{children:[`Permanently deletes one `,_jsx(_components.a,{href:`/dashboard/routing-rules`,children:`routing rule`}),`. It stops applying right away.`]}),`\n`,_jsxs(_components.p,{children:[`You need the `,_jsx(_components.code,{children:`owner`}),` or `,_jsx(_components.code,{children:`manager`}),` role on the rule’s domain. Viewers get `,_jsx(_components.code,{children:`403 forbidden`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`To turn a rule off temporarily, `,_jsx(_components.a,{href:`/api-reference/endpoint/update-routing-rule`,children:`update it`}),`\nwith `,_jsx(_components.code,{children:`\"isActive\": false`}),` instead. The rule is kept, so you can turn it back\non later.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Always call this endpoint from a `,_jsx(_components.strong,{children:`server-side environment`}),` (backend API, serverless function, build script, etc.). Never include your API key in client-side code — it will be visible to anyone inspecting your frontend.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`API access is available on `,_jsx(_components.strong,{children:`every plan`}),`. Each key has a monthly call quota\nthat varies by plan — see `,_jsx(_components.a,{href:`/api-reference/authentication#plan-limits`,children:`Plan Limits`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bearer hado_sk_your_key_here`})})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`domainId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`The ID of the domain the rule belongs to, from `,_jsx(_components.a,{href:`/api-reference/endpoint/list-domains`,children:`List Domains`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ruleId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`The rule to delete, from `,_jsx(_components.a,{href:`/api-reference/endpoint/list-routing-rules`,children:`List Routing Rules`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.hadoseo.com/functions/v1/domains/11111111-1111-1111-1111-111111111111/routing-rules/cccccccc-cccc-cccc-cccc-cccccccccccc`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer hado_sk_your_key_here\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-200`,children:`Success (200)`}),`\n`,_jsx(_components.p,{children:`The response includes a copy of the rule you deleted, so you can log it or recreate it later.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deleted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rule\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ruleId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cccccccc-cccc-cccc-cccc-cccccccccccc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"11111111-1111-1111-1111-111111111111\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sourcePath\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/old-blog/*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"targetUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/blog\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ruleType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redirect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"redirectCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`301`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"priority\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isActive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"notes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Blog moved in the 2026 redesign\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-25T10:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-25T10:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cacheInvalidated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`true`}),` on success.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rule`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`The rule as it was just before deletion. See `,_jsx(_components.a,{href:`/api-reference/endpoint/list-routing-rules#the-rule-object`,children:`The rule object`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cacheInvalidated`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` when the rule has stopped applying. If `,_jsx(_components.code,{children:`false`}),`, the rule is deleted but may keep applying for a few minutes. You don’t need to retry.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Body`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"invalid_request\", \"message\": \"...\" }`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`domainId`}),` or `,_jsx(_components.code,{children:`ruleId`}),` in the path isn’t a valid ID.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"invalid_api_key\" }`})}),_jsx(_components.td,{children:`API key is missing, invalid, or revoked.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"forbidden\" }`})}),_jsxs(_components.td,{children:[`You have `,_jsx(_components.code,{children:`viewer`}),` access to this rule’s domain. Deleting rules needs `,_jsx(_components.code,{children:`owner`}),` or `,_jsx(_components.code,{children:`manager`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"domain_not_found\" }`})}),_jsx(_components.td,{children:`The domain in the path doesn’t exist or your account can’t access it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"rule_not_found\" }`})}),_jsx(_components.td,{children:`No rule with this ID on this domain (it may have been deleted already).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"rate_limit_exceeded_monthly\", \"usage\": 300, \"limit\": 300 }`})}),_jsxs(_components.td,{children:[`Rate limit exceeded. The code is `,_jsx(_components.code,{children:`rate_limit_exceeded_monthly`}),` or `,_jsx(_components.code,{children:`rate_limit_exceeded_per_minute`}),` — match on the `,_jsx(_components.code,{children:`rate_limit_exceeded`}),` prefix to catch both.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Delete Routing Rule","description":"Permanently remove a redirect or proxy rule","href":"/api-reference/endpoint/delete-routing-rule"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[{"title":"Headers","slug":"headers","depth":3,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Example Request","slug":"example-request","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success (200)","slug":"success-200","depth":3,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"hadoseo","siteName":"Hado SEO","title":"Delete Routing Rule - Hado SEO","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T18:26:31.617Z","originalFileLocation":"api-reference/endpoint/delete-routing-rule.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Permanently remove a redirect or proxy rule\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hado SEO\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Delete Routing Rule - Hado SEO\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permanently remove a redirect or proxy rule\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hado SEO\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hadoseo.mintlify.site/_mintlify/api/og/v2?division=Routing+Rules\u0026amp;title=Delete+Routing+Rule\u0026amp;description=Permanently+remove+a+redirect+or+proxy+rule\u0026amp;theme=5df1c5393161b9c5b40d4271\u0026amp;signature=3286658bee9a45e6d3385ac0b24b854b28094408e9832f905972c406df0825fb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Delete Routing Rule - Hado SEO\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permanently remove a redirect or proxy rule\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hadoseo.mintlify.site/_mintlify/api/og/v2?division=Routing+Rules\u0026amp;title=Delete+Routing+Rule\u0026amp;description=Permanently+remove+a+redirect+or+proxy+rule\u0026amp;theme=5df1c5393161b9c5b40d4271\u0026amp;signature=3286658bee9a45e6d3385ac0b24b854b28094408e9832f905972c406df0825fb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hadoseo/x1PUEHCXTZ56WQPI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hado SEO\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/delete-routing-rule.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hadoseo.com/#organization\",\"name\":\"Hado SEO\",\"url\":\"https://docs.hadoseo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hadoseo/oSBCNWyhDfd0L3ab/logo/light.svg?fit=max\u0026auto=format\u0026n=oSBCNWyhDfd0L3ab\u0026q=85\u0026s=8185b5b46b3506634c57dd911a2c7f6f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hadoseo.com#website\",\"name\":\"Hado SEO\",\"url\":\"https://docs.hadoseo.com\",\"publisher\":{\"@id\":\"https://docs.hadoseo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule#webpage\",\"url\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule\",\"name\":\"Delete Routing Rule\",\"description\":\"Permanently remove a redirect or proxy rule\",\"dateModified\":\"2026-11-02T18:26:31.617Z\",\"isPartOf\":{\"@id\":\"https://docs.hadoseo.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Routing Rules\",\"item\":\"https://docs.hadoseo.com/api-reference/endpoint/list-routing-rules\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Delete Routing Rule\",\"item\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule#article\",\"headline\":\"Delete Routing Rule\",\"name\":\"Delete Routing Rule\",\"description\":\"Permanently remove a redirect or proxy rule\",\"url\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hadoseo.com/api-reference/endpoint/delete-routing-rule#webpage\"},\"dateModified\":\"2026-11-02T18:26:31.617Z\",\"publisher\":{\"@id\":\"https://docs.hadoseo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hadoseo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hado SEO\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hado SEO\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/delete-routing-rule.md","siteName":"Hado SEO","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://hadoseo.com/dashboard"},{"anchor":"Blog","icon":"newspaper","href":"https://hadoseo.com/blog"}]},"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":""}]},{"tab":"Features","pages":[{"title":"Features","href":"/dashboard/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Tips \u0026 Tricks","pages":[{"title":"Tips \u0026 Tricks","href":"/guides/dynamic-sitemap-supabase"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"MCP Server","pages":[{"title":"MCP Server","href":"/api-reference/mcp/overview"},{"title":"MCP Setup","href":"/api-reference/mcp/setup"},{"title":"MCP Tools","href":"/api-reference/mcp/tools"}]},{"group":"Endpoints","pages":[{"title":"Purge Cache","href":"/api-reference/endpoint/purge-cache"},{"title":"List Domains","href":"/api-reference/endpoint/list-domains"},{"title":"Export Analytics","href":"/api-reference/endpoint/export-analytics"},{"title":"Export Crawl Analytics","href":"/api-reference/endpoint/export-crawl-analytics"},{"title":"Export Crawl Logs","href":"/api-reference/endpoint/export-crawl-logs"},{"title":"Export Page Analytics","href":"/api-reference/endpoint/export-page-analytics"},{"title":"Export Page Snapshots","href":"/api-reference/endpoint/export-page-snapshots"},{"title":"Get Snapshot","href":"/api-reference/endpoint/get-snapshot"},{"title":"Export AI Referrals","href":"/api-reference/endpoint/export-ai-referrals"},{"title":"Bot Definitions","href":"/api-reference/endpoint/bot-definitions"}]},{"group":"Routing Rules","pages":[{"title":"List Routing Rules","href":"/api-reference/endpoint/list-routing-rules"},{"title":"Get Routing Rule","href":"/api-reference/endpoint/get-routing-rule"},{"title":"Create Routing Rule","href":"/api-reference/endpoint/create-routing-rule"},{"title":"Update Routing Rule","description":"Change, pause, or re-prioritize an existing redirect or proxy rule","href":"/api-reference/endpoint/update-routing-rule"},{"title":"Delete Routing Rule","href":"/api-reference/endpoint/delete-routing-rule"}]}]}]},"basePath":"","title":"Delete Routing Rule - Hado SEO","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}