User Assets
Delete several assets
Delete several assets in one call, by their IDs.
POST
https://api.sangtao.ai/v2/user-assets/bulk-deleteAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Body
idsstring[]requiredIDs of the assets to delete (ua_…), at most 50. Old numeric ids are still accepted, and can be mixed in
Response
deletednumberHow many assets were deleted. Ids that are not yours are skipped; none of them yours → 404
Errors
| Status | errorCode | When |
|---|---|---|
| 400 | VALIDATION_ERROR | ids is missing or empty, or has more than 50 ids |
| 404 | ASSET_NOT_FOUND | None of the ids is an asset of yours |
POST
/user-assets/bulk-deletecurl -X POST "https://api.sangtao.ai/v2/user-assets/bulk-delete" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"ua_3kT9qPz0B",
"ua_7mR2xLq5D",
"ua_9pW4nKt1H"
]
}'{
"success": true,
"data": {
"deleted": 3
}
}POST
/user-assets/bulk-deletecurl -X POST "https://api.sangtao.ai/v2/user-assets/bulk-delete" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"ua_3kT9qPz0B",
"ua_7mR2xLq5D",
"ua_9pW4nKt1H"
]
}'{
"success": true,
"data": {
"deleted": 3
}
}