Search.../

deleteRsvp( )

Deletes an RSVP.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function deleteRsvp(eventId: string, options: DeleteRsvpOptions): Promise<void>

deleteRsvp Parameters

NAME
TYPE
DESCRIPTION
eventId
string

Event ID to which RSVP belongs.

options
Optional
DeleteRsvpOptions

Optional fields.

Returns

Return Type:

Promise<
void
>

Was this helpful?

deleteRsvp example

Copy Code
1import { rsvp } from 'wix-events.v2';
2
3 async function deleteRsvp(eventId, options) {
4 try {
5 const result = await rsvp.deleteRsvp(eventId, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13