Go Headless

Changelog

SDK
Articles
Get Started
Work with the SDK
Set up a Client
Use the Wix MCP

Core Modules
About Core Modules
sdk
essentials
web-methods

Host Modules
About Host Modules
dashboard
editor
site

Backend Modules
About Backend Modules
activity-counters
analytics
async-jobs
ai-site-chat
app-management
auth-management
automations
benefit-programs
billing
blog
bookings
business-tools
cache
calendar
captcha
categories
comments
communication-channels
consent-policy
crm
dashboard-management
data
data-extension-schemas
ecom
email-marketing
email-subscriptions
embeds
events
functions
forms
forum
get-paid
groups
http-functions
identity
inbox
loyalty
marketing
marketing-consent
marketing-tags
media
members
moderation-rules
multilingual
notifications
payments
portfolio
pricing-plans
pro-gallery
Pro Gallery Schema for Wix Search
Introduction
ProGallery
Introduction
Setup
bulkDeleteGalleryItems()
createGallery()
createGalleryItem()
deleteGallery()
deleteGalleryItem()
deleteGalleryItems()
getGallery()
getGalleryItem()
listGalleries()
listGalleryItems()
updateGallery()
updateGalleryItem()
onGalleryCreated()
onGalleryDeleted()
onGalleryItemCreated()
onGalleryItemDeleted()
onGalleryItemUpdated()
onGalleryUpdated()
redirects
reports
restaurants
reviews
rich-content
search
secrets
seo
stores
tags
urls
site-plugins
sender-details
sender-emails
editor-branches
realtime
faq
donations

Account Level Modules
About Account Level APIs
b2b-site-management
domains
resellers
user-management
sites

Frontend Modules
About Frontend Modules
bookings
crm
ecom
events
location
members
mobile
navigate-mobile
pay
pricing-plans
seo
site
storage
stores
window
site-realtime

bulkDeleteGalleryItems( )


Developer Preview

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.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

  • In Wix sites and Wix apps, use elevated permissions.
  • In Wix Headless projects, use API key authentication.
Permissions
Manage Galleries
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
galleryIdstringRequired

Gallery ID.


itemIdsArray<string>Required

IDs of the media items to delete.

Returns
Return Type:Promise<BulkDeleteGalleryItemsResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?