ChatiumFor developersPlaygroundPricing
Sign in

removeFromSet

The removeFromSet method removes an element from a set by the specified key.

Parameters

  • key : string - the key under which the set is stored.
  • member : string - the element that needs to be removed from the set.

Return Value

Promise<number>

The return type is a response that is a number representing the count of elements removed from the set.

Example Request

const result = await removeFromSet('mySetKey', 'memberToRemove')