Excluir External Storage
DELETE/v1/organizations/external_storage/{external_storage_id}
Requires
anthropic-beta: efs-2026-10-01. Learn how to send beta headers.Exclui o External Storage. Um armazenamento com configuração pendente, disponível ou ativo
mas nunca anexado é excluído imediatamente, a menos que uma política de workspace do Enterprise Frontier Safeguards
o liste. Qualquer outro armazenamento recebe um 400 que informa o que fazer em seguida. Em um armazenamento draining,
esse 400 pode significar que esta exclusão iniciou uma remoção que não pode ser desfeita. Para verificar,
obtenha o armazenamento: se status.removal_started for true, exclua-o novamente mais tarde para concluir.
Excluir External Storage
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_deleted_external_storage = client.beta.organization.external_storage.delete(
external_storage_id="external_storage_id",
)
print(beta_deleted_external_storage.id)Response 200
{
"id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
"type": "external_storage_deleted"
}Returns Examples
Response 200
{
"id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
"type": "external_storage_deleted"
}