Anchor to section titled 'undefined'

publicationDelete
mutation

Requires write_publications access scope. Also: The user must have a permission to create and edit catalogs.

Deletes a publication.


Anchor to id
id
required

The ID of the publication to delete.


Was this section helpful?

The ID of the publication that was deleted.

The list of errors that occurred from executing the mutation.


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