Anchor to section titled 'undefined'

urlRedirectDelete
mutation

Requires write_online_store_navigation access scope.

Deletes a UrlRedirect object.


Anchor to id
id
required

The ID of the redirect to delete.


Was this section helpful?

The ID of the deleted redirect.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation urlRedirectDelete($id: ID!) {
  urlRedirectDelete(id: $id) {
    deletedUrlRedirectId
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100"
}