メインコンテンツへスキップ
DELETE
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
members
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    organizations "github.com/auth0/go-auth0/management/organizations"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Organizations.Members.Delete(
        context.TODO(),
        "id",
        &organizations.DeleteOrganizationMembersRequestContent{
            Members: []string{
                "members",
            },
        },
    )
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

Organization identifier.

Maximum string length: 50

ボディ

members
string<user-id-with-max-length>[]
必須

List of user IDs to remove from the organization.

Minimum array length: 1

レスポンス

Users successfully removed from organization.