Claude Platform Docs

Supprimer un groupe RBAC

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

Supprime un groupe RBAC. Les groupes provisionnés par un fournisseur d'identité (type de source "scim") ne peuvent pas être supprimés via l'API tant qu'une organisation du locataire utilise le provisionnement SCIM.

L'API RBAC Groups est disponible uniquement pour les organisations 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.

Supprimer un groupe 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"
}