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
1mutation publicationDelete($id: ID!) {2 publicationDelete(id: $id) {3 deletedId4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100"3}
{
"id": "gid://shopify/<objectName>/10079785100"
}