@since: BuddyPress 4.0.0 The method behavior was changed so that single-member groups are not deleted.
Description
BP_Groups_Member::delete_all_for_user()

Delete all group membership information for the specified user.

Source: bp-groups/classes/class-bp-groups-member.php:1426