This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a member is deleted.
function wixMembers_onMemberDeleted(event: MemberDeleted): void;
Information about the site member that was deleted.
// Place this code in the events.js file
// of your site's Backend section.
// Add the file if it doesn't exist.
export function wixMembers_onMemberDeleted(event) {
const deletionEventId = event.metadata.id;
}
/* Full event object:
* {
* "metadata": {
* "id": "6ee4c618-d1f9-4b4b-aca0-270d6984b79a",
* "entityId": "b00d7cd4-9413-4d4f-b9b1-9890f3ce27b9",
* "eventTime": "2021-12-13T09:33:13.654270Z",
* "triggeredByAnonymizeRequest": false
* }
* }
*/
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.