

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 從 Neptune 全球資料庫中移除資料庫叢集
<a name="neptune-gdb-detaching"></a>

有幾個您可能想要從全球資料庫移除資料庫叢集的原因。例如：
+ 如果主要叢集降級或遭隔離，您可以將其從全球資料庫中移除，而且其會變成可用來建立新全球資料庫的獨立佈建叢集 (請參閱 [在發生非計劃中斷時分離並提升 Neptune 全球資料庫](neptune-gdb-disaster-recovery.md#neptune-gdb-detach-and-promote))。
+ 如果想要刪除全球資料庫，首先您必須從中刪除 (分離) 所有相關聯的叢集，最後保留主要叢集 (請參閱 [刪除 Neptune 全球資料庫](neptune-gdb-deleting.md))。

您可以使用 [remove-from-global-cluster](https://docs.aws.amazon.com/cli/latest/reference/rds/remove-from-global-cluster.html) CLI 命令 (其中包裝 [RemoveFromGlobalCluster](api-global-dbs.md#RemoveFromGlobalCluster) API)，將 Neptune 資料庫叢集從全球資料庫中分離：

```
aws neptune remove-from-global-cluster \
  --region (region of the cluster to remove) \
  --global-cluster-identifier (global database ID) \
  --db-cluster-identifier (ARN of the cluster to remove)
```

然後，分離的資料庫叢集會變成獨立資料庫叢集。