Anchor to savedSearchDeletesaved
savedSearchDelete
mutation
Delete a saved search.
Anchor to Arguments
Arguments
- Anchor to inputinput•Saved
Search requiredDelete Input! The input fields to delete a saved search.
Was this section helpful?
Anchor to SavedSearchDeletePayload returnsSavedSearchDeletePayload returns
- Anchor to deletedSavedSearchIddeleted•
Saved Search Id The ID of the saved search that was deleted.
- Anchor to shopshop•Shop!non-null
The shop of the saved search that was deleted.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation savedSearchDelete($input: SavedSearchDeleteInput!) {
savedSearchDelete(input: $input) {
deletedSavedSearchId
shop {
# Shop fields
}
userErrors {
field
message
}
}
}
Input
{
"input": {
"id": "gid://shopify/<objectName>/10079785100"
}
}
{
"input": {
"id": "gid://shopify/<objectName>/10079785100"
}
}
input SavedSearchDeleteInput {
id: ID!
}