Files
doc-exports/docs/rfs/api-ref/DeleteStack.html
2025-07-24 16:47:34 +00:00

379 lines
28 KiB
HTML

<a name="DeleteStack"></a><a name="DeleteStack"></a>
<h1 class="topictitle1">Deleting a Stack</h1>
<div id="body8662426"><div class="section" id="DeleteStack__section13923254382"><h4 class="sectiontitle">Function</h4><p id="DeleteStack__p169232056382">DeleteStack</p>
<p id="DeleteStack__p99231259384">This API deletes a stack. **Exercise caution when performing this operation. Deleting a stack will delete all data related to the stack by default, such as execution plans, stack events, stack outputs, and resources. **</p>
<ul id="DeleteStack__ul59234514387"><li id="DeleteStack__li1192313513815">This API triggers the deletion of a stack, and all data of the stack is deleted for eventual consistency. You can call GetStackMetadata or ListStacks to track the deletion.</li><li id="DeleteStack__li13923557389">A stack cannot be deleted if it is in a non-final state (ending with <em id="DeleteStack__i1692311512381">IN_PROGRESS</em>). The states may include:<ul id="DeleteStack__ul69231454383"><li id="DeleteStack__li59235513819">DEPLOYMENT_IN_PROGRESS</li><li id="DeleteStack__li10923558388">DELETION_IN_PROGRESS</li><li id="DeleteStack__li49232523811">ROLLBACK_IN_PROGRESS</li></ul>
</li><li id="DeleteStack__li89231853383">If deletion protection is enabled for a stack, the stack cannot be deleted. You can call GetStackMetadata and view the <em id="DeleteStack__i209236510386">enable_deletion_protection</em> field in the returned result to check whether deletion protection is enabled. You can call UpdateStack to disable deletion protection.</li><li id="DeleteStack__li1392319519387">If the deletion of a stack fails, you can correct the current template based on the information in StackEvents, and delete the stack again after completing deployment. Deployment can be triggered in either of the following ways:<ul id="DeleteStack__ul992495173817"><li id="DeleteStack__li092410543817">Call CreateExecutionPlan to create an execution plan. After the execution plan is created, call ApplyExecutionPlan to deploy the stack.</li><li id="DeleteStack__li492417543818">Call DeployStack to deploy the stack.</li></ul>
</li></ul>
</div>
<div class="section" id="DeleteStack__section10924165173815"><h4 class="sectiontitle">URI</h4><p id="DeleteStack__p9924125193817">DELETE /v1/{project_id}/stacks/{stack_name}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table8925259381" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="DeleteStack__row1592518516387"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="DeleteStack__p09250516385">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="DeleteStack__p15925957388">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="DeleteStack__p192518514387">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="DeleteStack__p199254513818">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row1492512533816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="DeleteStack__p159266511381">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="DeleteStack__p12926175173816">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="DeleteStack__p092611553817">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="DeleteStack__p189261350389">A project ID is obtained by calling an API or from the console.</p>
<p id="DeleteStack__p792617583813">Minimum: <strong id="DeleteStack__b1992617516385">3</strong></p>
<p id="DeleteStack__p1992695183817">Maximum: <strong id="DeleteStack__b1592613573811">64</strong></p>
</td>
</tr>
<tr id="DeleteStack__row29251854384"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="DeleteStack__p1992619513819">stack_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="DeleteStack__p1092613583813">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="DeleteStack__p7926165173813">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="DeleteStack__p189262593815">A stack name is unique within its domain (domain_id), region, and project (project_id). It is case-sensitive and starts with a letter. Only letters, digits, underscores (_), and hyphens (-) are allowed.</p>
<p id="DeleteStack__p189264573811">Minimum: <strong id="DeleteStack__b149267517387">1</strong></p>
<p id="DeleteStack__p16926175193810">Maximum: <strong id="DeleteStack__b1992625123811">128</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table12927115143820" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="DeleteStack__row8927115143813"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="DeleteStack__p1692712513818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="DeleteStack__p189271543810">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="DeleteStack__p12927115143818">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="DeleteStack__p109273513819">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row1592717553811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="DeleteStack__p79277533819">stack_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="DeleteStack__p9927185163811">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="DeleteStack__p1992725133818">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="DeleteStack__p10927155193817">Unique stack ID.</p>
<p id="DeleteStack__p992717543816">It is a UUID generated by RFS when a stack is created.</p>
<p id="DeleteStack__p8927652382">Stack names are unique at one specific time, so you can create a stack named HelloWorld and another stack with the same name after deleting the first one.</p>
<p id="DeleteStack__p092715523815">For parallel development, team members may want to ensure that they are operating the stack they created, not one with the same name created by other members after deleting the previous one.</p>
<p id="DeleteStack__p692775113816">To avoid this mismatch, check the ID, since RFS ensures each stack has a unique ID that does not change with updates. If the stack_id value differs from the current stack ID, 400 is returned.</p>
<p id="DeleteStack__p1292745163819">Minimum: <strong id="DeleteStack__b59278533812">36</strong></p>
<p id="DeleteStack__p192811517385">Maximum: <strong id="DeleteStack__b99281351380">36</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="DeleteStack__section792820512388"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__en-us_topic_0000001709159314_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="DeleteStack__row192814520385"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="DeleteStack__p149283513818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="DeleteStack__p1292819515385">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="DeleteStack__p1592816543817">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="DeleteStack__p15928557387">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row79289563818"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="DeleteStack__p10928105153817">Client-Request-Id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="DeleteStack__p1292815513389">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="DeleteStack__p992811543817">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="DeleteStack__p1392885103820">A unique request ID is specified by a user to locate a request. UUID is recommended.</p>
<p id="DeleteStack__p892811510389">Minimum: <strong id="DeleteStack__b9928155123817">36</strong></p>
<p id="DeleteStack__p1492914511381">Maximum: <strong id="DeleteStack__b29294518384">128</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="DeleteStack__section89295513814"><h4 class="sectiontitle">Response Parameters</h4><p id="DeleteStack__p8929552384"><strong id="DeleteStack__b16929953388">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__en-us_topic_0000001709159314_response_CommonErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="DeleteStack__row6929105163813"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="DeleteStack__p992975173818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="DeleteStack__p79304533818">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="DeleteStack__p1493045123813">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row79299503817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteStack__p19930165163811">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteStack__p119305533815">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteStack__p79301957389">Response code.</p>
<p id="DeleteStack__p1593020553811">Minimum: <strong id="DeleteStack__b2093018511389">11</strong></p>
<p id="DeleteStack__p493075143816">Maximum: <strong id="DeleteStack__b199309553818">11</strong></p>
</td>
</tr>
<tr id="DeleteStack__row1892914510380"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteStack__p1493018517385">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteStack__p1493010503811">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteStack__p493116563818">Response message.</p>
</td>
</tr>
<tr id="DeleteStack__row692935133811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteStack__p29313533814">encoded_authorization_message</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteStack__p139314573818">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteStack__p15931551380">The message contains information about unauthorized requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="DeleteStack__p5931185153810"><strong id="DeleteStack__b79311557387">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table10931135203812" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="DeleteStack__row1893135143819"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="DeleteStack__p69319573818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="DeleteStack__p593212511383">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="DeleteStack__p10932355388">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row793113523811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteStack__p793219514388">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteStack__p12932185203817">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteStack__p1193218573815">Response code.</p>
<p id="DeleteStack__p693210583817">Minimum: <strong id="DeleteStack__b1493214511389">11</strong></p>
<p id="DeleteStack__p0932452381">Maximum: <strong id="DeleteStack__b12932155133817">11</strong></p>
</td>
</tr>
<tr id="DeleteStack__row209314543810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteStack__p169323593819">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteStack__p10932135103818">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteStack__p19932657387">Response message.</p>
</td>
</tr>
<tr id="DeleteStack__row693112516385"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteStack__p1893265133814">encoded_authorization_message</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteStack__p69324510389">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteStack__p693219523818">The message contains information about unauthorized requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="DeleteStack__p159329523811"><strong id="DeleteStack__b1293218517386">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table193216573820" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="DeleteStack__row1993316513385"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="DeleteStack__p119331151384">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="DeleteStack__p179338543818">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="DeleteStack__p18933653383">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row19933135123816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="DeleteStack__p1393310516389">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="DeleteStack__p179334523819">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="DeleteStack__p293385103817">Response code.</p>
<p id="DeleteStack__p199331857389">Minimum: <strong id="DeleteStack__b7933105173812">11</strong></p>
<p id="DeleteStack__p15933195203819">Maximum: <strong id="DeleteStack__b7933145183812">11</strong></p>
</td>
</tr>
<tr id="DeleteStack__row79333518387"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="DeleteStack__p1193335193810">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="DeleteStack__p169331515384">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="DeleteStack__p393310517383">Response message.</p>
</td>
</tr>
<tr id="DeleteStack__row199337593819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="DeleteStack__p79341256385">encoded_authorization_message</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="DeleteStack__p5934555381">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="DeleteStack__p1293425123816">The message contains information about unauthorized requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="DeleteStack__p493412563813"><strong id="DeleteStack__b10934175173818">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table293415593819" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="DeleteStack__row11934255387"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="DeleteStack__p993416543820">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="DeleteStack__p1993419510381">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="DeleteStack__p129347518381">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row18934195103811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="DeleteStack__p1993415593814">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="DeleteStack__p12934125103813">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="DeleteStack__p3934125183818">Response code.</p>
<p id="DeleteStack__p149342503817">Minimum: <strong id="DeleteStack__b79346518381">11</strong></p>
<p id="DeleteStack__p293418583817">Maximum: <strong id="DeleteStack__b49351459381">11</strong></p>
</td>
</tr>
<tr id="DeleteStack__row109342553810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="DeleteStack__p17935750384">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="DeleteStack__p99355510386">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="DeleteStack__p9935205153816">Response message.</p>
</td>
</tr>
<tr id="DeleteStack__row129345523817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="DeleteStack__p3935135143815">encoded_authorization_message</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="DeleteStack__p4935452387">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="DeleteStack__p1893515563813">The message contains information about unauthorized requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="DeleteStack__p393516518385"><strong id="DeleteStack__b29351513380">Status code: 429</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table59353512386" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="DeleteStack__row1793511517383"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="DeleteStack__p293520563815">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="DeleteStack__p19352512383">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="DeleteStack__p493515143810">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row993518511382"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="DeleteStack__p4935156381">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="DeleteStack__p293616593814">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="DeleteStack__p493605193812">Response code.</p>
<p id="DeleteStack__p69365543813">Minimum: <strong id="DeleteStack__b1693613510380">11</strong></p>
<p id="DeleteStack__p493610511382">Maximum: <strong id="DeleteStack__b1293612563810">11</strong></p>
</td>
</tr>
<tr id="DeleteStack__row09358583812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="DeleteStack__p19365511386">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="DeleteStack__p1693617515389">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="DeleteStack__p7936145153818">Response message.</p>
</td>
</tr>
<tr id="DeleteStack__row199352563816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="DeleteStack__p493615153813">encoded_authorization_message</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="DeleteStack__p393612543815">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="DeleteStack__p3936115123817">The message contains information about unauthorized requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="DeleteStack__p109364514384"><strong id="DeleteStack__b1293695113818">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__table59364510385" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="DeleteStack__row179366511389"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.1"><p id="DeleteStack__p1493715513386">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.2"><p id="DeleteStack__p693713573814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.13.2.4.1.3"><p id="DeleteStack__p159376523818">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row19361057385"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="DeleteStack__p7937555382">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="DeleteStack__p1793715143816">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="DeleteStack__p093719511385">Response code.</p>
<p id="DeleteStack__p99374515387">Minimum: <strong id="DeleteStack__b993755203811">11</strong></p>
<p id="DeleteStack__p169371654385">Maximum: <strong id="DeleteStack__b293713583813">11</strong></p>
</td>
</tr>
<tr id="DeleteStack__row149361512382"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="DeleteStack__p11937155133813">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="DeleteStack__p17938185183810">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="DeleteStack__p16938353384">Response message.</p>
</td>
</tr>
<tr id="DeleteStack__row1993610511389"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="DeleteStack__p1493812583816">encoded_authorization_message</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="DeleteStack__p169382519384">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="DeleteStack__p693811512387">The message contains information about unauthorized requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="DeleteStack__section169381059386"><h4 class="sectiontitle">Example Requests</h4><ul id="DeleteStack__ul89380518382"><li id="DeleteStack__li189386513382">Delete a specified stack.<pre class="screen" id="DeleteStack__screen893811518385">DELETE https://{endpoint}/v1/ba2b9930c977f71edaeaa3a5e96a8ff1/stacks/my_hello_world_stack</pre>
</li><li id="DeleteStack__li1993811563815">Delete a specified stack and check whether the provided stack ID matches the current stack.<pre class="screen" id="DeleteStack__screen19938135153813">DELETE https://{endpoint}/v1/ba2b9930c977f71edaeaa3a5e96a8ff1/stacks/my_hello_world_stack?stack_id=ea6a4f0e-ee8a-494e-b12a-8be4a1e65af2</pre>
</li></ul>
</div>
<div class="section" id="DeleteStack__section193895153812"><h4 class="sectiontitle">Example Responses</h4><p id="DeleteStack__p13938175133814">None</p>
</div>
<div class="section" id="DeleteStack__section593855143819"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteStack__en-us_topic_0000001709159314_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="DeleteStack__row1193965193819"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="DeleteStack__p1493917593818">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="DeleteStack__p169397511384">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="DeleteStack__row1493995183814"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p12939195133811">202</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteStack__p1893920512382">The request is accepted and processed asynchronously.</p>
</td>
</tr>
<tr id="DeleteStack__row16939454384"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p1193911516386">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteStack__p17939155387">Invalid request.</p>
</td>
</tr>
<tr id="DeleteStack__row49391653380"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p1593912523816">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteStack__p993915583817">Authentication failed.</p>
</td>
</tr>
<tr id="DeleteStack__row1939455384"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p119397583817">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><ol id="DeleteStack__ol179399517383"><li id="DeleteStack__li794019583813">Invalid stack status.</li><li id="DeleteStack__li59401253384">The user does not have the permission to call this API.</li></ol>
</td>
</tr>
<tr id="DeleteStack__row12939145173813"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p1994017553815">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteStack__p99408553817">The stack does not exist.</p>
</td>
</tr>
<tr id="DeleteStack__row1193955163811"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p1940185173813">429</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteStack__p109409514382">Too frequent requests.</p>
</td>
</tr>
<tr id="DeleteStack__row693912543811"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteStack__p12940250383">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteStack__p1940115143820">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000000.html">Stacks</a></div>
</div>
</div>