DELETE
/
{asset_id}
Delete Asset
curl --request DELETE \
  --url https://mavi-backend.memories.ai/serve/api/v2/{asset_id} \
  --header 'Authorization: <api-key>'
{
  "code": "0000",
  "msg": "success",
  "data": null,
  "success": true,
  "failed": false
}
This endpoint allows you to permanently delete an asset from the system.

Code Examples

const assetId = "re_657739295220518912";

const response = await fetch(`/${assetId}`, {
  method: 'DELETE',
  headers: {
    'Authorization': 'sk-8483027fe3abfe535f6ae01a9979b4f7'
  }
});

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

Path Parameters

ParameterTypeRequiredDescription
asset_idstringYesThe unique identifier of the asset to delete (e.g., “re_657739295220518912”)

Response

Returns a confirmation of the deletion.
{
  "code": "0000",
  "msg": "success",
  "data": null,
  "success": true,
  "failed": false
}

Response Parameters

ParameterTypeDescription
codestringResponse code indicating the result status
msgstringResponse message describing the operation result
datanullResponse data object (null for delete operations)
successbooleanIndicates whether the operation was successful
failedbooleanIndicates whether the operation failed

Notes

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

Authorizations

Authorization
string
header
required

Path Parameters

asset_id
string
required

The unique identifier of the asset to delete

Response

200 - application/json

Asset deleted successfully

code
string

Response code indicating the result status

Example:

"0000"

msg
string

Response message describing the operation result

Example:

"success"

data
null

Response data object (null for delete operations)

Example:

null

success
boolean

Indicates whether the operation was successful

Example:

true

failed
boolean

Indicates whether the operation failed

Example:

false