Search...
disconnect( )
Developer Preview
Disconnects from an external calendar.
Description
When an external calendar is disconnected, the external calendar connection's status
is changed to DISCONNECTED
.
After disconnecting, listEvents()
no longer returns events from the disconnected external calendar.
Exported Wix calendar sessions are deleted from the external calendar.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function disconnect(connectionId: string): Promise<DisconnectResponse>
disconnect Parameters
NAME
TYPE
DESCRIPTION
connectionId
string
ID of the external calendar connection to disconnect.
Returns
Return Type:
Promise<
DisconnectResponse
>NAME
TYPE
DESCRIPTION
connection
Connection
Updated connection details.
Was this helpful?
Disconnect an external calendar connection
Copy Code
1import {externalCalendars} from 'wix-bookings.v2';23async function disconnect(connectionId) {4 const {connection: updatedConnection} =5 await externalCalendars.disconnect(connectionId)6 return updatedConnection7}