Skip to main content
DELETE
/
team
/
members
/
{user_id}
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.TeamMembers.Delete(ctx, "user_0MoLqJEYd57pY")
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
{
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

user_id
string
required

The user ID

Response

200 - application/vnd.api+json

Success

The response is of type file.