tencent cloud

Setting Instance Termination Protection
Last updated: 2025-12-01 19:04:19
Setting Instance Termination Protection
Last updated: 2025-12-01 19:04:19

Scenarios

In most cases, when you no longer need an instance, you can terminate the instance through the console or an API. To prevent accidental termination of the instance, you can enable the instance termination protection feature. If the feature is enabled, you cannot terminate the instance through the console or an API. If you confirm that the instance needs to be terminated, you can disable the feature first and then proceed with the termination.
You can enable instance termination protection to prevent accidental termination of the instances that contain your business data. This document introduces how to enable or disable instance termination protection through the console.

Feature Description

Instance termination protection is disabled by default for newly purchased and existing instances. You can enable it as needed.
After instance termination protection is enabled for the primary instance, the feature will be automatically enabled for all its associated read-only instances, disaster recovery instances, and read-only analysis engines, including both existing and newly purchased ones. You can disable instance termination protection individually for specific associated instances. For example, you can disable instance termination protection for a read-only instance.
After instance termination protection is disabled for the primary instance, the feature will be automatically disabled for all its associated read-only instances, disaster recovery instances, and read-only analysis engines.
When instance termination protection is disabled for the primary instance, you can independently enable the feature for the associated read-only instances, disaster recovery instances, or read-only analysis engines. When the feature is independently enabled for these instances, it is not automatically enabled for the primary instance.

Must-Knows

Instance termination protection does not apply to system-level termination, such as the termination of pay-as-you-go instances that are shut down due to overdue payments and the termination of yearly/monthly subscription instances that have expired and remained in the recycle bin for more than 7 days.

Fee Description

Currently, the feature is free of charge.

Supported Architectures

The feature is supported for TencentDB for MySQL instances with single-node, two-node, three-node, and Cluster Edition architectures, as well as the read-only analysis engine.

Feature Status Description

After instance termination protection is enabled, the status of related instances in the instance list and instance details page will become Termination Protection Enabled. You can quickly determine whether this feature is enabled by this status.
After instance termination protection is enabled, all feature buttons associated with instance termination for the instance will be grayed out and unavailable for clicking.

Operation Steps

Enabling Instance Termination Protection

For Existing Instances
For New Instances
Enable instance termination protection for a single instance.
1. Log in to the MySQL console, select the required instance in the instance list, and choose More > Set Instance Termination Protection in the Operation column.

Note:
You can also choose More > Set Instance Termination Protection on the top-right corner of the instance details page.
2. In the pop-up instance termination protection window, select Enable and click OK to enable instance termination protection.
Enable instance termination protection for instances in batches.
1. Log in to the MySQL console, select multiple instances in the instance list, and choose More > Set Instance Termination Protection above the instance list.
2. In the pop-up instance termination protection window, select Enable and click OK to enable instance termination protection.
2. Complete the parameter configuration for the instance purchase, check "Prevent accidental instance termination through the console or an API" under the instance termination protection option, and click Buy Now.

Note:
For more information about complete purchase parameter configurations, see Purchase Methods.

Disabling Instance Termination Protection

If you have confirmed that an instance can be terminated, you can perform the following steps to disable instance termination protection before terminating the instance:
Disable instance termination protection for a single instance.
1. Log in to the MySQL console, select the required instance in the instance list, and choose More > Set Instance Termination Protection in the Operation column.

Note:
You can also choose More > Set Instance Termination Protection on the top-right corner of the instance details page.
2. In the pop-up instance termination protection window, select Disable and click OK to disable instance termination protection.
Disable instance termination protection for instances in batches.
1. Log in to the MySQL console, select multiple instances in the instance list, and choose More > Set Instance Termination Protection above the instance list.
2. In the pop-up instance termination protection window, select Disable and click OK to disable instance termination protection.

Documentation

Related APIs

API
Description
This API is used to create a TencentDB for MySQL instance in yearly/monthly subscription mode.
This API is used to create a TencentDB for MySQL instance in pay-as-you-go mode.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback