Search...
onCollectionDeleted( )
An event that fires when a product collection is deleted.
Description
The onCollectionDeleted()
event handler runs when a product collection
is deleted from a store.
Note: Backend events don't work when previewing your site.
Syntax
function onCollectionDeleted(event: CollectionDeletedEvent): void
onCollectionDeleted Parameters
NAME
TYPE
DESCRIPTION
event
CollectionDeletedEvent
Information about the product collection that was deleted.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
An event when a product collection is deleted
Copy Code
1// Place this code in the events.js file2// of your site's Backend section.34export function wixStores_onCollectionDeleted(event) {5 let collectionId = event.collectionId;6}78/* Full event object:9 *10 * {11 * "collectionId": "a7698dfb-12e8-1bd6-cdc1-0116554f18d1"12 * }13 *14 */