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

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

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.UserGrants.DeleteByUserId(
        context.TODO(),
        &management.DeleteUserGrantByUserIdRequestParameters{
            UserId: "user_id",
        },
    )
}

承認

Authorization
string
header
必須

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

クエリパラメータ

user_id
string
必須

user_id of the grant to delete.

レスポンス

User grant successfully deleted.