- Docs
- Api%2Freference%2Fstorage%2FDeleteAsset
Delete an asset
Delete a file and everything recorded about it. This cannot be undone. The call returns after both the stored file and its database record have been deleted. Nothing warns you if the file is still in use. If a face, template or object points at it, that picture simply stops loading — check before you delete. Requires the `storage.delete` permission.
The access token returned after a successful sign-in, sent as
Authorization: Bearer <access_token>.
It identifies the person and the organization they are working in, and
it lasts about fifteen minutes. When it runs out, use their refresh
token at POST /auth/refresh-token instead of asking them to sign in
again.
In: header
Path Parameters
Identifier of the asset, as returned by POST /assets.
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://api.dual.network/assets/665f1c2d4b1a2c3d4e5f6a10"{}{
"code": 3,
"message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}{
"code": 16,
"message": "no auth provided"
}{
"code": 13,
"message": "internal error"
}