---
title: "Deletes a file nothing uses."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › file

`DELETE /v1/stores/{store}/assets/{asset}`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `file:delete`

## Path parameters

- `store` (`deleteAsset.path.store`; string, required) — The store's id.
- `asset` (`deleteAsset.path.asset`; string, required)
  - minLength 1

## Query parameters

- `detach` (`deleteAsset.query.detach`; boolean, optional)
- `bindings` (`deleteAsset.query.bindings`; string, optional) — The digest `getAsset` answers.
  - minLength 64; maxLength 64; pattern `^[0-9a-f]{64}$`

## Header parameters

- `Idempotency-Key` (`deleteAsset.header.Idempotency-Key`; string, optional) — Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.
  - minLength 1; maxLength 255; pattern `^[\x21-\x7E]+$`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

Deletes a file nothing uses.

#### Example

```json
{
  "id": "string",
  "deleted": true
}
```

- `id` (`deleteAsset.response.200.id`; string, required)
- `deleted` (`deleteAsset.response.200.deleted`; boolean, required)

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`deleteAsset.response.default.type`; string, required)
  - format `uri`
- `title` (`deleteAsset.response.default.title`; string, required)
- `status` (`deleteAsset.response.default.status`; integer, required)
- `detail` (`deleteAsset.response.default.detail`; string, required)
- `code` (`deleteAsset.response.default.code`; string, optional)
- `context` (`deleteAsset.response.default.context`; object, optional)
- `reached_core` (`deleteAsset.response.default.reached_core`; boolean, optional)
- `core_answer` (`deleteAsset.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/delete-asset/index.md
