Search...
deleteBookmark( )
Removes a schedule item bookmark for a currently logged-in member.
Syntax
function deleteBookmark(itemId: string, eventId: string): Promise<void>
deleteBookmark Parameters
NAME
TYPE
DESCRIPTION
itemId
string
Schedule item ID.
eventId
string
Event ID to which the schedule belongs.
Returns
Return Type:
Promise<
void
>Was this helpful?
deleteBookmark example
Copy Code
1import { scheduleBookmarks } from 'wix-events.v2';23 async function deleteBookmark(itemId, eventId) {4 try {5 const result = await scheduleBookmarks.deleteBookmark(itemId, eventId);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13