Remove user from group

delete
https://api.box.com/2.0
/group_memberships/:group_membership_id

Deletes a specific group membership.

Request

application/json

Path Parameters

stringin pathrequired
434534

The ID of the group membership.

Response

none

A blank response is returned if the membership was successfully deleted.

application/jsonClient error

An unexpected client error.

delete
Remove user from group
You can now try out some of our APIs live, right here in the documentation.
Log In

Request Example

cURL
curl -X DELETE https://api.box.com/2.0/group_memberships/434534 \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
await client.GroupsManager.DeleteGroupMembershipAsync("33333");
Java
BoxGroupMembership membership = new BoxGroupMembership(api, id);
membership.delete();
Python
membership_id = '1234'
client.group_membership(membership_id).delete() 
print('The membership was deleted!')
Node
client.groups.removeMembership('33333')
	.then(() => {
		// removal succeeded — no value returned
	});
iOS
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.")
}