This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes multiple media items from a gallery.
function bulkDeleteGalleryItems(
galleryId: string,
itemIds: Array<string>,
): Promise<BulkDeleteGalleryItemsResponse>;
Gallery ID.
IDs of the media items to delete.
import { proGallery } from "@wix/pro-gallery";
async function bulkDeleteGalleryItems(galleryId, itemIds) {
const response = await proGallery.bulkDeleteGalleryItems(galleryId, itemIds);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.