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

# Delete Theme Asset

> Delete a file from a theme

Permanently removes a file from the theme.

**Auth:** OAuth access token with the `write_themes` scope.

<Warning>
  Deletion is immediate and cannot be undone. If the theme is live, the file
  stops being served straight away — duplicate the theme and delete from the
  copy if you are testing.
</Warning>

## Path Parameters

<ParamField path="theme_id" type="string" required>
  The theme ID
</ParamField>

## Query Parameters

<ParamField query="key" type="string" required>
  The asset path to delete, e.g. `snippets/custom-banner.aqua`
</ParamField>

## Request

```bash theme={null}
curl -X DELETE "https://api.launchmystore.io/api/v1/themes/1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718/assets.json?key=snippets/custom-banner.aqua" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

## Response

Delete returns a message envelope with no `data` payload.

```json theme={null}
{
  "status": 200,
  "state": "success",
  "message": "Asset deleted successfully",
  "data": null
}
```

## Errors

| Status | Description                               |
| ------ | ----------------------------------------- |
| `401`  | Invalid or missing access token           |
| `403`  | App doesn't have the `write_themes` scope |
| `404`  | Theme or asset does not exist             |
| `400`  | Invalid asset key                         |

## See also

* [List theme assets](/api-reference/themes/assets)
* [Create / update a theme asset](/api-reference/themes/asset-update)
