

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

# 刪除置放群組
<a name="delete-placement-group"></a>

如果需要更換或不再需要某個置放群組，可以刪除該置放群組。置放群組不得包含任何執行個體，您才可予以刪除。您可以終止執行個體，將其移動到另一個放置群組，或將其從放置群組中移除。

------
#### [ Console ]

**刪除置放群組**

1. 前往 [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/) 開啟 Amazon EC2 主控台。

1. 在導覽窗格中，選擇 **Placement Groups (置放群組)**。

1. 選取置放群組並依序選取 **Actions (動作)**、**Delete (刪除)**。

1. 出現確認提示時，請輸入 **Delete**，然後選擇 **Delete (刪除)**。

------
#### [ AWS CLI ]

**刪除置放群組**  
使用 [delete-placement-group](https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-placement-group.html) 命令。

```
aws ec2 delete-placement-group --group-name my-cluster
```

------
#### [ PowerShell ]

**刪除置放群組**  
使用 [Remove-EC2PlacementGroup](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2PlacementGroup.html) cmdlet。

```
Remove-EC2PlacementGroup -GroupName my-cluster
```

------