Delete an image, model, audio file or Blender model
r3_asset_deleteDelete one of the account's images, models, audio files, Blender models (kind blender: a whole uploaded .blend with every version; its meshes in use stay) or texture sets (kind textureSet: the set and its maps, r3_texture_create made it) — the same reference-guarded delete as the R3 app. With asset:delete:created, only an asset YOU created (this agent key or app connection; today: images made with r3_image_create); with asset:delete:owned, any of the user's assets, and only when the user asked for it: pass owned: true for one you did not create (an app connection is then asked for that right). Two calls, every time: without confirm nothing is deleted, and the answer says what would go and which of the user's projects use it; the same call with confirm: true, when that is what the user wants, deletes it. An asset another user's project uses can never be deleted. A model takes the images only it used with it, an HDR / EXR image its preview image. There is no trash and no undo. Ids come from r3_image_list, r3_audio_list and r3_blender_list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The asset's id, as the list tools report it. | |
| kind | Yes | What the id names: blender = a Blender model (its blenderModelId), textureSet = a texture set (its setId). | |
| owned | No | true when the asset is one of the user's own, not one you created: it needs asset:delete:owned. Only when the user asked to delete it. Leave out for an asset you created. | |
| confirm | No | Leave out on the first call (it only reports). true deletes — after the user has seen the report. | |
| deleteReleases | No | With confirm: also move the user's non-live, UNPINNED releases that use it to the 7-day trash (needs release:delete; only when the user asked). Without it those releases are kept: for an image, model or audio file they are marked incomplete; for a Blender model they keep their meshes (the meshes they use stay). Pinned releases are never deleted by an agent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| size | No | ||
| answer | Yes | This answer in words: what was done, what R3 measured, decided or refused, and what to do next. The same text as the result's text block. Read it: the fields beside it are the data, this is the guidance. | |
| deleted | Yes | ||
| projects | Yes | ||
| releases | No | ||
| meshesKept | No | ||
| environment | Yes | ||
| meshesDeleted | No | ||
| previewProject | No | ||
| referenceCount | Yes | ||
| cascadeImageIds | No | ||
| confirmRequired | Yes | ||
| releasesDeleted | No | ||
| releasesMarkedIncomplete | No |