// Delete an organization membership by its ID.
Delete an organization membership by its ID.
// Delete an organization membership by its ID .
func (s *organizationMemberships) Delete(ctx context.Context, organizationMembershipID string) error {
	if !validStringID(&organizationMembershipID) {
		return errors.New("invalid value for membership")
	}
	u := fmt.Sprintf("organization-memberships/%s", url.QueryEscape(organizationMembershipID))
	req, err := s.client.newRequest("DELETE", u, nil)
	if err != nil {
		return err
	}
	return s.client.do(ctx, req, nil)
}
func ( s * organizationMemberships ) Delete ( ctx context . Context , organizationMembershipID string ) error { if ! validStringID ( & organizationMembershipID ) { return errors . New ( " " ) } u := fmt . Sprintf ( " " , url . QueryEscape ( organizationMembershipID ) ) req , err := s . client . newRequest ( " " , u , nil ) if err != nil { return err } return s . client . do ( ctx , req , nil ) }
Delete an organization membership by its ID.
Delete an organization membership by its ID .