Skip to content
API Reference

Remove member from zone

client.Zones.Members.Delete(ctx, organizationUserID, body) error
DELETE/zones/{zoneId}/members/{organizationUserId}

Removes an organization user's membership from a zone. Only organization administrators can perform this action.

ParametersExpand Collapse
organizationUserID string
body ZoneMemberDeleteParams
ZoneID param.Field[string]

Zone ID

Remove member from zone

package main

import (
  "context"

  "github.com/keycardai/keycard-go"
)

func main() {
  client := keycard.NewClient(

  )
  err := client.Zones.Members.Delete(
    context.TODO(),
    "organizationUserId",
    keycard.ZoneMemberDeleteParams{
      ZoneID: "zoneId",
    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples