This method has been replaced with Bulk Delete Gallery Items, and will be removed on August 15, 2024.
Deletes multiple media items from a gallery.
You can only call this method when authenticated as a Wix app or Wix user identity.
Gallery ID.
ID of the media item to delete.
Gallery that previously included the deleted media item.
curl -X DELETE \
'https://www.wixapis.com/progallery/v2/galleries/432c362d-1440-4205-b9cb-35ea11a22682/items' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"itemIds": [
"fa499c86-aee9-11ea-8c85-12879e2400f0",
"cb499c86-aee9-11ea-8c85-12879e2400f0"
]
}'
{
"gallery": {
"id": "a59d43f0-0023-4ef2-8593-e38d2b668795",
"name": "Simple Gallery",
"totalItems": 1,
"items": [],
"createdDate": "2020-08-17T14:10:55.483Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.