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

# Delete Asset

> Delete an asset by ID

Permanently deletes an asset from both R2 storage and the database. This action cannot be undone.

## Path Parameters

<ParamField path="id" type="string" required>
  The asset ID (UUID).
</ParamField>

## Response

```json 200 theme={null}
{
  "success": true
}
```

```json 404 theme={null}
{
  "success": false,
  "message": "Asset not found"
}
```

***

## Delete Asset by URL

```
POST /assets/delete
```

Delete an asset from R2 storage by its public URL. Useful for cleaning up images that aren't tracked in the assets table (e.g. influencer images, product images).

### Body Parameters

<ParamField body="url" type="string" required>
  The public R2 URL of the file to delete.
</ParamField>

### Response

```json 200 theme={null}
{
  "success": true
}
```
