Skip to main content
DELETE
/
asset
/
{id}
Delete an asset
curl --request DELETE \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Asset deleted successfully"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/asset/example-id', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Asset ID to delete

Response

Asset deleted successfully

message
string
Example:

"Asset deleted successfully"