Skip to content

Delete URL Rewrite

Deletes a URL rewrite — the Delete row action on the admin Marketing → Search & SEO → URL Rewrites screen.

TIP

New here? Read the URL Rewrites overview for what a URL rewrite does and how its fields behave.

Operation

OperationTypePurpose
deleteAdminMarketingUrlRewriteMutationDelete a URL rewrite

Details

  • Requires an admin Bearer token and the marketing.search_seo.url_rewrites.delete permission.
  • Pass the rewrite's IRI as id. Use the list query to discover valid ids.

Confirm success via the absence of errors

The delete mutation returns a success acknowledgement, not the deleted rewrite's data — adminMarketingUrlRewrite resolves to null on the payload. Treat a response with no errors[] as a successful delete. If you need a confirmation message in the body, use the REST endpoint (DELETE /api/admin/marketing/url-rewrites/{id}), which returns { "message": "URL rewrite deleted." }.

Input fields

FieldTypeRequiredNotes
idIDYesThe rewrite's IRI

Released under the MIT License.