Skip to Content
HomeLink Hub
Calendar

Disconnect Google Calendar

DELETE
/api/v1/calendar/google

Access: Bearer token required.

Disconnects the authenticated user's Google Calendar: the stored refresh token is revoked at Google on a best-effort basis (a failed revoke is only logged) and then removed from the user record. The call is idempotent and returns the same success response when nothing was connected. Events already created on the user's calendar are not deleted, and no further inspections are synced until the user connects again.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Response Body

Disconnected (or was never connected).

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X DELETE 'http://localhost:4000/api/v1/calendar/google'
Example Response
{  "status": 200,  "success": true,  "message": "Google Calendar disconnected",  "data": {    "connected": false  }}