Search...
bulkDeleteEventsByFilter( )
Permanently deletes multiple events that meet the given criteria.
Description
You can retrieve the deleted events through a GDPR access request.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function bulkDeleteEventsByFilter(options: BulkDeleteEventsByFilterOptions): Promise<void>
bulkDeleteEventsByFilter Parameters
NAME
TYPE
DESCRIPTION
options
Optional
BulkDeleteEventsByFilterOptions
Optional fields.
Returns
Return Type:
Promise<
void
>Was this helpful?
bulkDeleteEventsByFilter example
Copy Code
1import { wixEventsV2 } from 'wix-events.v2';23 async function bulkDeleteEventsByFilter(options) {4 try {5 const result = await wixEventsV2.bulkDeleteEventsByFilter(options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13