Requires Any of write_content, write_online_store_pages access scopes.

Deletes a page.


Anchor to id
id
required

The ID of the page to be deleted.


Was this section helpful?

The ID of the deleted page.

The list of errors that occurred from executing the mutation.


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