

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

# 刪除 Neptune 全球資料庫
<a name="neptune-gdb-deleting"></a>

您無法在單一步驟中刪除全球資料庫及其相關聯的叢集。相反，您必須逐一刪除其元件：

1. 從全球資料庫中分離所有次要資料庫叢集，如 [移除叢集](neptune-gdb-detaching.md) 所述。如果想要的話，您現在可以個別刪除它們。

1. 從全球資料庫中分離主要資料庫叢集。

1. 從主要叢集中刪除所有僅供讀取複本資料庫執行個體。

1. 從主要叢集中刪除主要 (寫入器) 資料庫執行個體。如果您在主控台上執行此操作，它也會刪除資料庫叢集。

1. 刪除全球資料庫本身。若要使用 執行此操作 AWS CLI，請使用 [delete-global-cluster](https://docs.aws.amazon.com/cli/latest/reference/neptune/delete-global-cluster.html) CLI 命令 （包裝 [DeleteGlobalCluster](api-global-dbs.md#DeleteGlobalCluster) API)，如下所示：

   ```
   aws neptune delete-global-cluster \
     --region (region of the DB cluster to delete) \
     --global-cluster-identifier (global database ID)
   ```