Kalpana Docs
Resources

Delete several assets

Delete up to 50 images at once, keeping any that are in use.

POST /api/assets/bulk-delete

Requires assets:delete.

FieldRequiredDescription
workspaceYesWorkspace slug or id.
idsYes1 to 50 asset ids.
curl --request POST "https://app.kalpana.one/api/assets/bulk-delete" \
  --header "x-api-key: $KALPANA_API_KEY" \
  --header "content-type: application/json" \
  --data '{"workspace":"acme","ids":["ASSET_ID_1","ASSET_ID_2"]}'

Response

{
  "deleted": 1,
  "inUse": 1,
  "failed": 0
}
FieldDescription
deletedImages removed from the workspace, from every image collection and from storage. They cannot be recovered.
inUseImages kept because a template that is not deleted uses them, or an AI image edit was made from them.
failedImages kept because their file could not be removed from storage. Try them again.

Each image is checked on its own, so some can go while others stay. Links from deleted templates do not count as in use: they are removed with the image. Ids that are not in the workspace, and internal template previews, are skipped and not counted. More than 50 ids returns 400.

Errors

StatusCause
400ids is empty or has more than 50 items.
403Your role or key lacks assets:delete.
Was this page helpful?

Updated 4 Nov 2026

On this page