Skip to content

Mass Delete URL Rewrites

Deletes several URL rewrites in one call — the Mass Delete action on the admin Marketing → Search & SEO → URL Rewrites datagrid.

TIP

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

Endpoint

EndpointMethod
/api/admin/marketing/url-rewrites/mass-deletePOST

Details

  • Requires an admin Bearer token and the marketing.search_seo.url_rewrites.delete permission.
  • Non-existent ids are silently skipped (returned in skipped); the ids actually removed are returned in deleted.
  • An empty or missing indices list returns a 422 error.

Request body

FieldTypeRequiredNotes
indicesint[]yesNon-empty list of numeric rewrite ids to delete

Released under the MIT License.