Go Headless

/

SDK
Articles
Get Started
Work with the SDK
Set up a Client
Use the Wix MCP
What's New

Core Modules
sdk
sdk-react (deprecated)
essentials
web-methods

Host Modules
About Host Modules
dashboard
dashboard-react (deprecated)
editor
site

Backend Modules
activity-counters
analytics
async-jobs
ai-site-chat
app-management
auth-management
automations
billing
blog
bookings
business-tools
cache
calendar
captcha
categories
comments
consent-policy
crm
dashboard-management
data
data-extension-schemas
ecom
email-marketing
email-subscriptions
events
forms
forum
get-paid
groups
http-functions
identity
inbox
loyalty
marketing
marketing-consent
marketing-tags
media
members
multilingual
notifications
payments
pricing-plans
pro-gallery
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
secrets
stores
table-reservations
tags
urls
portfolio
site-plugins
sender-details
sender-emails
realtime

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

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

onGalleryDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:
  • This method registers a callback function as an event handler.
  • When developing websites or building apps with Blocks, use a Velo backend event instead of this method.
  • The way you call this method differs depending on the framework you are working in:
    • When using the CLI, run the generate command to add an event extension, and then call this method within the extension code.
    • When building a self-hosted app, subscribe your app to the relevant event, and then call this method on your server.

Triggered when a gallery is deleted.

Permissions
Manage Galleries
Read Galleries
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
handlerfunction

handler(event: GalleryDeletedEnvelope): void | Promise<void>

Did this help?