Move an asset to the bin, or purge it with ?purge=1
delete/assets/{id}
Move an asset to the bin, or purge it with ?purge=1. An asset still in use is refused (409 with where it is used) unless ?force=1.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
files:write- Mcp
rivier_assets_delete- Graphql
Mutation.filesAssetDelete- Sdk
files.asset.delete- Cli
files asset delete- Events
files.asset.deleted
Parameters
- idstring (uuid)requiredIn the path
- purgestringIn the query
- forcestringIn the query
Responses
- 200application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring