MemberSpace.clearMemberMetadata

An Asynchronous function (returns a Promise). It resets the user's metadata storage to the default value: {} (empty object).

// Using async-await
const fn = async () => {
    await MemberSpace.clearMemberMetadata();

    // continue custom code
};

// Using Promise chaining
MemberSpace
  .clearMemberMetadata()
  .then(() => {
    // continue custom code
  });

Last updated