<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Removes an asset from the app's media library. This can't be undone.

When the file is stored with Base44 for this app, the file is deleted too, and its URL stops working, including in the app's code. A file added by URL from somewhere else stays where it is. The asset is removed even if deleting the file fails.

This endpoint is limited to 120 requests per minute, shared with Create asset, Rename asset and Delete asset. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused, and workspace API keys are not accepted.</Note>

delete/api/apps/{app_id}/assets/{asset_id}

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/assets/{asset_id}
  • Auth: HTTP bearer

Path parameters

asset_idstring required

ID of the asset to delete. Get it from id in List assets.

app_idstring required

ID of the app whose media library to change.

Response

The asset was removed.

successboolean required

Always true.

Example response

{
  "success": true
}

Changes