Delete Site Page

Deletes a page from a Square Online site. This operation permanently removes the specified page file from the site directory of the site.

DELETE /v2/sites/{site_id}/pages/{page_id}

Permissions: ONLINE_STORE_CUSTOM_THEME_WRITE

Path parameters

Name Type Description
site_id string Required The ID of the site.
page_id string Required The ID of the page to delete.

Response fields

Name Type Description
errors Error [ ] Any errors that occurred during the request.

Example request

curl https://connect.squareup.com/v2/sites/site_id0/pages/page_id1 \
  -X DELETE \
  -H 'Square-Version: 2023-09-25' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'

Example response

{}