特定のグループメンバーシップを削除します。このグループの管理者、または管理者レベルの権限を持つユーザーのみがこのAPIを使用できます。
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));
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.")
}