> ## Documentation Index
> Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Asset

> Delete an asset by its ID

<Info>
  **Product**: Visual Intelligence — Asset Management
  **Use case**: Upload, manage, and download video/image assets used by other Visual Intelligence APIs
  **Host**: `https://mavi-backend.memories.ai/serve/api/v2`
  **Auth**: `Authorization: sk-mavi-...` (no `Bearer` prefix)
</Info>

This endpoint allows you to permanently delete an asset from the system.

### Code Examples

<CodeGroup>
  ```javascript fetch theme={null}
  const BASE_URL = "https://mavi-backend.memories.ai/serve/api/v2";
  const API_KEY = "sk-mavi-...";
  const assetId = "re_657739295220518912";

  const response = await fetch(`${BASE_URL}/${assetId}`, {
    method: 'DELETE',
    headers: {
      'Authorization': API_KEY
    }
  });

  const data = await response.json();
  console.log(data);
  ```

  ```javascript axios theme={null}
  import axios from 'axios';

  const BASE_URL = "https://mavi-backend.memories.ai/serve/api/v2";
  const API_KEY = "sk-mavi-...";
  const assetId = "re_657739295220518912";

  const response = await axios.delete(`${BASE_URL}/${assetId}`, {
    headers: {
      'Authorization': API_KEY
    }
  });

  console.log(response.data);
  ```

  ```python Python theme={null}
  import requests

  BASE_URL = "https://mavi-backend.memories.ai/serve/api/v2"
  API_KEY = "sk-mavi-..."
  HEADERS = {
      "Authorization": f"{API_KEY}"
  }

  def delete_asset(asset_id):
      url = f"{BASE_URL}/{asset_id}"
      response = requests.delete(url, headers=HEADERS)
      return response.json()

  # Usage example
  result = delete_asset("re_657739295220518912")
  print(result)
  ```
</CodeGroup>

### Path Parameters

| Parameter | Type   | Required | Description                                                                   |
| --------- | ------ | -------- | ----------------------------------------------------------------------------- |
| asset\_id | string | Yes      | The unique identifier of the asset to delete (e.g., "re\_657739295220518912") |

### Response

Returns a confirmation of the deletion.

<ResponseExample>
  ```json theme={null}
  {
    "code": 200,
    "msg": "success",
    "data": null,
    "success": true,
    "failed": false
  }
  ```
</ResponseExample>

### Response Parameters

| Parameter | Type    | Description                                       |
| --------- | ------- | ------------------------------------------------- |
| code      | string  | Response code indicating the result status        |
| msg       | string  | Response message describing the operation result  |
| data      | null    | Response data object (null for delete operations) |
| success   | boolean | Indicates whether the operation was successful    |
| failed    | boolean | Indicates whether the operation failed            |

### Notes

* This operation is **irreversible**
* All associated data will be permanently removed
* Returns error if asset ID doesn't exist


## OpenAPI

````yaml DELETE /{asset_id}
openapi: 3.1.0
info:
  title: MAVI API Reference
  description: REST APIs for memory management, search, and entity operations
  version: v1.0.1
servers:
  - url: https://mavi-backend.memories.ai/serve/api/v2
security:
  - ApiKeyAuth: []
paths:
  /{asset_id}:
    delete:
      summary: Delete Asset
      operationId: delete_asset
      parameters:
        - name: asset_id
          in: path
          required: true
          schema:
            type: string
          description: The unique identifier of the asset to delete
          example: re_657739295220518912
      responses:
        '200':
          description: Asset deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: 200
                    description: Response code indicating the result status
                  msg:
                    type: string
                    example: success
                    description: Response message describing the operation result
                  data:
                    type: 'null'
                    example: null
                    description: Response data object (null for delete operations)
                  success:
                    type: boolean
                    example: true
                    description: Indicates whether the operation was successful
                  failed:
                    type: boolean
                    example: false
                    description: Indicates whether the operation failed
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````