Disconnect an email account
Email
Disconnect an email account
Soft-disconnects the account: stops the mailbox watch (Gmail users.stop, Outlook subscription delete), marks the EmailAccount isActive: false, and clears historyId / watchExpiration. The stored OAuth tokens are kept on the document but the account no longer participates in sync.
DELETE
Disconnect an email account
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Internal _id of the EmailAccount document.
Response
Account disconnected
Response from DELETE /api/email/accounts/{accountId}.
Available options:
true