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

    Location Custom Attributes

  • List location custom attribute definitions

  • Create location custom attribute definition

  • Delete location custom attribute definition

  • Retrieve location custom attribute definition

  • Update location custom attribute definition

  • Bulk delete location custom attributes

  • Bulk upsert location custom attributes

  • List location custom attributes

  • Delete location custom attribute

  • Retrieve location custom attribute

  • Upsert location custom attribute

  • Webhooks

  • location.custom_attribute_definition.owned.created

  • location.custom_attribute_definition.owned.deleted

  • location.custom_attribute_definition.owned.updated

  • location.custom_attribute_definition.visible.created

  • location.custom_attribute_definition.visible.deleted

  • location.custom_attribute_definition.visible.updated

  • location.custom_attribute.owned.deleted

  • location.custom_attribute.owned.updated

  • location.custom_attribute.visible.deleted

  • location.custom_attribute.visible.updated

<- Location Custom Attributes API

Location Custom Attributes API

All versions ->

Delete location custom attribute definitionBeta

DELETE

 /v2/locations/custom-attribute-definitions/{key}

Deletes a location-related custom attribute definition from a Square seller account.

Deleting a custom attribute definition also deletes the corresponding custom attribute from all locations. Only the definition owner can delete a custom attribute definition.

Permissions:MERCHANT_PROFILE_WRITE

Guide

Delete location custom attribute definition

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

key

string

Required

The key of the custom attribute definition to delete.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

Examples

All versions ->

DELETE /v2/locations/custom-attribute-definitions/{key}
curl https://connect.squareup.com/v2/locations/custom-attribute-definitions/bestseller \ -X DELETE \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'

Response JSON

{}