Permanently deletes an event.
You can retrieve the deleted event through a GDPR access request.
You can only call this method when authenticated as a Wix app or Wix user identity.
function deleteEvent(eventId: string): Promise<DeleteEventResponse>;
Event ID.
import { wixEventsV2 } from "@wix/events";
async function deleteEvent(eventId) {
const response = await wixEventsV2.deleteEvent(eventId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.