Classic APIs
ClassicGroupsApi
removeGroupMember

removeGroupMember

Removes a user from a group.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to remove the user from.
userIdIdentifierThe id of the user to be removed.

Example

const { data: success } = await ClassicGroupsApi.removeGroupMember({ groupId: 5850082, userId: 2655994471 }); 

Endpoint

DELETE /v1/groups/{groupId}/users/{userId}