doc-exports/docs/rds/umn/rds_08_0002.html
Ru, Li Yi f51ec873f3 rds_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-06-05 10:42:11 +00:00

23 lines
6.1 KiB
HTML

<a name="rds_08_0002"></a><a name="rds_08_0002"></a>
<h1 class="topictitle1">Deleting a DB Instance or Read Replica</h1>
<div id="body1789605"><div class="section" id="rds_08_0002__section50920834194327"><h4 class="sectiontitle">Scenarios</h4><p id="rds_08_0002__p438755534210">To release resources, you can delete DB instances or read replicas as required on the <strong id="rds_08_0002__b0561183473316">Instances</strong> page. </p>
</div>
<div class="section" id="rds_08_0002__section815731552410"><h4 class="sectiontitle">Constraints</h4><ul id="rds_08_0002__ul71711915112418"><li id="rds_08_0002__li101715153246">DB instances cannot be deleted when operations are being performed on them. They can be deleted only after the operations are complete.</li><li id="rds_08_0002__li17171171518243">If you delete a DB instance, its automated backups are also deleted and you are no longer billed for them. Manual backups, however, are still retained and will generate additional costs.</li></ul>
<div class="notice" id="rds_08_0002__note317151522414"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="rds_08_0002__ul2171415142419"><li id="rds_08_0002__li1217141511249">If you delete a primary DB instance, its standby DB instance and read replicas (if any) are also deleted automatically. Exercise caution when performing this operation.</li><li id="rds_08_0002__li171712157246">Deleted DB instances cannot be recovered and resources are released. Exercise caution when performing this operation. If you want to retain data, <a href="rds_08_0005.html">create a manual backup</a> first before deleting the DB instance.</li><li id="rds_08_0002__li240817292211">You can restore a DB instance that was deleted up to 7 days ago from the recycle bin. For details, see <a href="rds_mysql_recycle.html">Recycling a DB Instance</a>.</li><li id="rds_08_0002__li1768202019114">You can use a manual backup to restore a DB instance. For details, see <a href="rds_08_0007.html">Restoring from Backup Files to DB Instances</a>.</li></ul>
</div></div>
</div>
<div class="section" id="rds_08_0002__section1011433142919"><h4 class="sectiontitle"><span class="keyword" id="rds_08_0002__keyword1656972221017">Deleting a DB Instance</span></h4><ol id="rds_08_0002__oa004d58aa8da4fdfbebf702690153c24"><li id="rds_08_0002__li17616348171"><span>Log in to the management console.</span></li><li id="rds_08_0002__li146168481712"><span>Click <span><img id="rds_08_0002__rds_modify_instance_name_en-us_topic_0192953815_image192529212293" src="en-us_image_0000001191211679.png"></span> in the upper left corner and select a region and a project.</span></li><li id="rds_08_0002__li96167481711"><span>Click <strong id="rds_08_0002__rds_modify_instance_name_b171171523153019">Service List</strong>. Under <strong id="rds_08_0002__rds_modify_instance_name_b111722319302">Database</strong>, click <strong id="rds_08_0002__rds_modify_instance_name_b15118152363010">Relational Database Service</strong>. The RDS console is displayed.</span></li><li id="rds_08_0002__ld12529687a704575ae374eb70ec4b1a4"><span>On the <strong id="rds_08_0002__b15540931759">Instances</strong> page, locate the primary DB instance to be deleted and click <strong id="rds_08_0002__b12514174111518">More</strong> &gt; <strong id="rds_08_0002__b1480745150">Delete</strong> in the <strong id="rds_08_0002__b811917483513">Operation</strong> column.</span></li><li id="rds_08_0002__li138661710123813"><span>In the displayed dialog box, click <strong id="rds_08_0002__b95511723161313">Yes</strong>.</span><p><div class="notice" id="rds_08_0002__note681711551719"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="rds_08_0002__p2818105518717">If it is associated with a DDM instance, you will be redirected to the DDM console. Disassociate your instance from the DDM instance. Then go back to the RDS console, refresh the instance list, and delete the instance again.</p>
</div></div>
</p></li><li id="rds_08_0002__l601f793a4dcf4f50ba3417ee838b53ed"><span>Refresh the DB instance list later to confirm that the deletion was successful.</span></li></ol>
</div>
<div class="section" id="rds_08_0002__section486010764714"><h4 class="sectiontitle"><span class="keyword" id="rds_08_0002__keyword16983111716475">Deleting a Read Replica</span></h4><ol id="rds_08_0002__ol49836179475"><li id="rds_08_0002__li1849182563412"><span>Log in to the management console.</span></li><li id="rds_08_0002__li749162511345"><span>Click <span><img id="rds_08_0002__rds_modify_instance_name_en-us_topic_0192953815_image192529212293_1" src="en-us_image_0000001191211679.png"></span> in the upper left corner and select a region and a project.</span></li><li id="rds_08_0002__li649111252346"><span>Click <strong id="rds_08_0002__rds_modify_instance_name_b171171523153019_1">Service List</strong>. Under <strong id="rds_08_0002__rds_modify_instance_name_b111722319302_1">Database</strong>, click <strong id="rds_08_0002__rds_modify_instance_name_b15118152363010_1">Relational Database Service</strong>. The RDS console is displayed.</span></li><li id="rds_08_0002__li124061901846"><span>On the <strong id="rds_08_0002__b1361920016113">Instances</strong> page, locate the target DB instance and click <span><img id="rds_08_0002__image18407160649" src="en-us_image_0000001191131419.png"></span>. All the read replicas created for the DB instance are displayed.</span></li><li id="rds_08_0002__li9984171764715"><span>Locate the read replica to be deleted and click <strong id="rds_08_0002__b197751912141218">More</strong> &gt; <strong id="rds_08_0002__b1375916165123">Delete</strong> in the <strong id="rds_08_0002__b9432202018125">Operation</strong> column.</span></li><li id="rds_08_0002__li1253715733916"><span>In the displayed dialog box, click <strong id="rds_08_0002__b9344755101514">Yes</strong>.</span></li><li id="rds_08_0002__li398541724715"><span>Refresh the DB instance list later to check that the deletion is successful.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_05_0000.html">Instance Lifecycle</a></div>
</div>
</div>