Claude Platform Docs

Elimina gruppo RBAC

client.Beta.Organization.RBACGroups.Delete(ctx, rbacGroupID) (*BetaOrganizationRBACGroupDeleteResponse, error)
DELETE/v1/organizations/rbac_groups/{rbac_group_id}

Elimina un gruppo RBAC. I gruppi forniti da un provider di identità (tipo di origine "scim") non possono essere eliminati tramite l'API mentre un'organizzazione nel tenant usa il provisioning SCIM.

L'API dei gruppi RBAC è disponibile solo per le organizzazioni Claude Enterprise.

Parameters
rbacGroupID string⁠Path parameter

ID of the RBAC Group.

Returns
type BetaOrganizationRBACGroupDeleteResponse struct { Type: "rbac_group_deleted"; ID }
Type RBACGroupDeleted

Deleted object type.

For RBAC Groups, this is always "rbac_group_deleted".

defaultrbac_group_deleted
ID string

ID of the RBAC Group.

Elimina gruppo RBAC
package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go"
	"github.com/anthropics/anthropic-sdk-go/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	rbacGroup, err := client.Beta.Organization.RBACGroups.Delete(context.TODO(), "rbac_group_id")
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", rbacGroup.ID)
}
Returns Examples
Response 200
{
  "id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
  "type": "rbac_group_deleted"
}