---
title: "Delete a Location Attachment"
method: DELETE
path: "/locations/{storeId}/attachments/{attachmentId}"
tags: ["Locations"]
---

# Delete a Location Attachment

`DELETE /locations/{storeId}/attachments/{attachmentId}`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/locations/{storeId}/attachments/{attachmentId}`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/locations/:storeId/attachments/:attachmentId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `storeId` string, required
- `attachmentId` integer, required

## Response `200`

The attachment is deleted.

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters
- `401`: Indicates that the requested resource requires authentication.
- `403`: User is not assigned to Location <br/>Error codes: 804 — User is not assigned to Location.
- `404`: Invalid StoreID <br/>Error codes: 606 — Invalid StoreID.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
