Delete delegated grant
client.Zones.DelegatedGrants.Delete(ctx, id, body) error
DELETE/zones/{zoneId}/delegated-grants/{id}
Permanently revokes a delegated grant, removing the user's access to the protected resource
Parameters
id string
Delete delegated grant
package main
import (
"context"
"github.com/keycardai/keycard-go"
)
func main() {
client := keycard.NewClient(
)
err := client.Zones.DelegatedGrants.Delete(
context.TODO(),
"id",
keycard.ZoneDelegatedGrantDeleteParams{
ZoneID: "zoneId",
},
)
if err != nil {
panic(err.Error())
}
}