disassociateAccountModels
abstract suspend fun disassociateAccountModels(input: DisassociateAccountModelsRequest): DisassociateAccountModelsResponse
Removes models from your account's model list. The operation ignores models that aren't on the list. WorkSpaces and persona configurations that use a removed model continue to reference it in their configuration, but the service blocks requests to the model. Your account must keep at least one model. If the request would remove the last model, the operation returns ValidationException.
Samples
// The following example removes two models from the account s model list.
val resp = workSpacesClient.disassociateAccountModels {
modelIds = listOf<String>(
"anthropic.claude-opus-5-5",
"anthropic.claude-haiku-5-5"
)
}Content copied to clipboard