Deletes a specific group membership. Only admins of this group or users with admin-level permissions will be able to use this API.
434534
The ID of the group membership.
A blank response is returned if the membership was successfully deleted.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/group_memberships/434534" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.memberships.deleteGroupMembershipById(groupMembership.id!);
client.memberships.delete_group_membership_by_id(group_membership.id)
await client.Memberships.DeleteGroupMembershipByIdAsync(groupMembershipId: NullableUtils.Unwrap(groupMembership.Id));
try await client.memberships.deleteGroupMembershipById(groupMembershipId: groupMembership.id!)
BoxGroupMembership membership = new BoxGroupMembership(api, id);
membership.delete();
membership_id = '1234'
client.group_membership(membership_id).delete()
print('The membership was deleted!')
await client.GroupsManager.DeleteGroupMembershipAsync("33333");
client.groups.removeMembership('33333')
.then(() => {
// removal succeeded — no value returned
});
client.groups.deleteMembership(membershipId: "12345") {
(result: Result<Void, BoxSDKError>) in
guard case .success = result else {
print("Error deleting group membership")
return
}
print("Group Membership was successfully deleted.")
}