Snippets

  • Delete snippet

  • Retrieve snippet

  • Upsert snippet

Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

<- Snippets API

Snippets API

All versions ->

Delete snippet

DELETE

 /v2/sites/{site_id}/snippet

Removes your snippet from a Square Online site.

You can call ListSites to get the IDs of the sites that belong to a seller.

Note: Square Online APIs are publicly available as part of an early access program. For more information, see Early access program for Square Online APIs.

Permissions:ONLINE_STORE_SNIPPETS_WRITE

Guide

Delete a snippet

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

site_id

string

Required

The ID of the site that contains the snippet.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

Examples

All versions ->

DELETE /v2/sites/{site_id}/snippet
curl https://connect.squareup.com/v2/sites/site_id0/snippet \ -X DELETE \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'

Response JSON

{}