Delete Asset
March 2, 2026
Table of contents
Delete a specific asset (image or video) from generation history. The assetId is obtained from GET /assets/account, completed GET /images/jobid, or GET /videos/jobid results.
https://api.useapi.net/v1/dreamina/assets/
assetId
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Path Parameters
assetIdis required.
Responses
-
Asset deleted successfully.
{ "deleted": true, "assetId": "US:[email protected]:7612453183683579150", "account": "US:[email protected]" } -
Invalid API token.
{ "error": "Unauthorized" } -
Account not found or not configured.
{ "error": "Unable to find configuration for account US:[email protected]" }
Examples
-
curl -X DELETE \ -H "Authorization: Bearer YOUR_API_TOKEN" \ "https://api.useapi.net/v1/dreamina/assets/US:[email protected]:7612453183683579150" -
const token = 'YOUR_API_TOKEN'; const assetId = 'US:[email protected]:7612453183683579150'; const response = await fetch( `https://api.useapi.net/v1/dreamina/assets/${encodeURIComponent(assetId)}`, { method: 'DELETE', headers: { 'Authorization': `Bearer ${token}` } } ); const result = await response.json(); console.log('Delete result:', result); -
import requests from urllib.parse import quote token = 'YOUR_API_TOKEN' asset_id = 'US:[email protected]:7612453183683579150' response = requests.delete( f'https://api.useapi.net/v1/dreamina/assets/{quote(asset_id, safe="")}', headers={'Authorization': f'Bearer {token}'} ) print('Delete result:', response.json())