Anchor to publicationDeletepublication
publicationDelete
mutation
Requires access scope. Also: The user must have a permission to create and edit catalogs.
Deletes a publication.
Anchor to Arguments
Arguments
- •ID!required
The ID of the publication to delete.
Was this section helpful?
Anchor to PublicationDeletePayload returnsPublicationDeletePayload returns
- Anchor to deletedIddeleted•
Id The ID of the publication that was deleted.
- Anchor to userErrorsuser•
Errors [PublicationUser non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation publicationDelete($id: ID!) {
publicationDelete(id: $id) {
deletedId
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100"
}
{
"id": "gid://shopify/<objectName>/10079785100"
}