刪除 External Storage
DELETE/v1/organizations/external_storage/{external_storage_id}
Requires
anthropic-beta: efs-2026-10-01. Learn how to send beta headers.刪除 External Storage。處於待設定或可用狀態,或處於作用中狀態但從未附加的儲存空間會立即刪除,
除非有 Enterprise Frontier Safeguards 工作區政策列出它。其他儲存空間會收到 400,說明下一步該怎麼做。
對於 draining 的儲存空間,該 400 可能表示此次刪除已啟動無法復原的移除作業。
若要確認,請取得該儲存空間:如果 status.removal_started 為 true,請稍後再次刪除以完成作業。
刪除 External Storage
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.externalstorage.BetaDeletedExternalStorage;
import com.anthropic.models.beta.organization.externalstorage.ExternalStorageDeleteParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaDeletedExternalStorage betaDeletedExternalStorage = client.beta().organization().externalStorage().delete("external_storage_id");
}
}Response 200
{
"id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
"type": "external_storage_deleted"
}Returns Examples
Response 200
{
"id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
"type": "external_storage_deleted"
}