Deprecated. This function will continue to work, but a newer version is available at deleteMember().
Deletes a member.
The deleteMember()
function returns a Promise that resolves to a member object
when the specified member is deleted.
This function permanently deletes a member. Once deleted, a member cannot be restored.
If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to deleteMember().
To migrate to the new function:
Add the new import statement:
Test your changes to make sure your code behaves as expected.
ID of the member to delete.
This example uses a deprecated function.