deleteEvent( )


Permanently deletes an event.

You can retrieve the deleted event through a GDPR access request.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Events
Learn more about app permissions.
Method Declaration
Copy
function deleteEvent(eventId: string): Promise<DeleteEventResponse>;
Method Parameters
eventIdstringRequired

Event ID.

Returns
Return Type:Promise<DeleteEventResponse>
JavaScript
import { wixEventsV2 } from "@wix/events"; async function deleteEvent(eventId) { const response = await wixEventsV2.deleteEvent(eventId); }
Errors

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

Did this help?