DeleteUser
client.Users.DeleteUser(ctx, body) (*UserDeleteUserResponse, error)
POST/gitpod.v1.UserService/DeleteUser
Deletes a user. If the User comes from an organization’s SSO provider, the Account will also be deleted.
DeleteUser
package main
import (
"context"
"fmt"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/option"
)
func main() {
client := gitpod.NewClient(
option.WithBearerToken("My Bearer Token"),
)
response, err := client.Users.DeleteUser(context.TODO(), gitpod.UserDeleteUserParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{}Returns Examples
{}