

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

# 從 CloudFormation 登錄檔取消註冊自訂掛鉤
<a name="deregistering-hooks"></a>

取消註冊自訂勾點會將擴充功能或擴充功能版本標記為 CloudFormation 登錄`DEPRECATED`檔中的 ，這會將其從作用中使用中移除。一旦棄用，自訂勾點就無法在 CloudFormation 操作中使用。

**注意**  
取消註冊勾點之前，您必須個別取消註冊該延伸模組的所有先前作用中版本。如需詳細資訊，請參閱[https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html)。

若要取消註冊勾點，請使用 [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/deregister-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/deregister-type.html)操作並指定您的勾點 ARN。

```
$ aws cloudformation deregister-type \
    --arn {{HOOK_TYPE_ARN}}
```

此命令不會產生輸出。