Claude Platform Docs

Hapus Grup RBAC

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

Menghapus Grup RBAC. Grup yang disediakan oleh penyedia identitas (tipe sumber "scim") tidak dapat dihapus melalui API selama ada organisasi di tenant yang menggunakan provisioning SCIM.

RBAC Groups API hanya tersedia untuk organisasi 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.

Hapus Grup 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"
}