

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 从 Neptune 全球数据库中移除数据库集群
<a name="neptune-gdb-detaching"></a>

出于多种原因，您可能要从全球数据库中移除数据库集群。例如：
+ 如果主集群已降级或处于隔离状态，则可以将其从全球数据库中移除，这样它就会变成一个可用于创建新的全球数据库的独立预调配集群（请参阅[Detach-and-promote 计划外停机时使用 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)
```

然后，分离的数据库集群就会变成独立的数据库集群。