

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

# 刪除集合
<a name="serverless-delete"></a>

刪除集合會刪除集合中的所有資料和索引。刪除集合後，您將無法復原集合。

**使用主控台刪除集合**

1. 從 Amazon OpenSearch Service 主控台的 **Collections** (集合) 面板中，選取您要刪除的集合。

1. 選擇 **Delete** (刪除)，並確認刪除。

若要使用 刪除集合 AWS CLI，請傳送 [DeleteCollection](https://docs.aws.amazon.com/opensearch-service/latest/ServerlessAPIReference/API_DeleteCollection.html) 請求：

```
&aws opensearchserverless delete-collection --id 07tjusf2h91cunochc
```

**回應範例**

```
{
   "deleteCollectionDetail":{
      "id":"07tjusf2h91cunochc",
      "name":"my-collection",
      "status":"DELETING"
   }
}
```