leaveCommunity( )


Removes the current member from the site community and sets their profile to private.

When a member's profile is private, they do not have access to the site's Members Area features, such as chat, forum, and followers, and their profile is hidden from other members and site visitors.

Notes:

  • If a member leaves the site's community, their content, such as forum posts and blog comments, remain publicly visible.
  • Only logged-in members can call this method without elevated permissions.
  • To call this method as a different identity, elevated permissions are required.
Permissions
Manage Members
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<LeaveCommunityResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?