Files
doc-exports/docs/lts/api-ref/lts_02_0005.html
liusiying77 fdbbe7547a LTS API 20240130 version.
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com>
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: liusiying77 <liusiying@huawei.com>
Co-committed-by: liusiying77 <liusiying@huawei.com>
2025-03-12 12:37:01 +00:00

63 lines
6.3 KiB
HTML

<a name="lts_02_0005"></a><a name="lts_02_0005"></a>
<h1 class="topictitle1">Deleting a Log Group</h1>
<div id="body8662426"><div class="section" id="lts_02_0005__en-us_topic_0169936667_section18433281"><h4 class="sectiontitle">Function</h4><p class="msonormal" id="lts_02_0005__en-us_topic_0169936667_p26493289">This function describes how to delete a log group that will not be used.</p>
<div class="note" id="lts_02_0005__en-us_topic_0169936667_note13147254913"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0005__en-us_topic_0169936667_p161481757916">Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log groups cannot be recovered. Therefore, exercise caution when performing this deletion operation.</p>
</div></div>
</div>
<div class="section" id="lts_02_0005__en-us_topic_0169936667_section31681806"><h4 class="sectiontitle">URI</h4><ul id="lts_02_0005__en-us_topic_0169936667_ul165395536212"><li id="lts_02_0005__en-us_topic_0169936667_li5269929173052">URI format<p id="lts_02_0005__en-us_topic_0169936667_p1635162582517"><a name="lts_02_0005__en-us_topic_0169936667_li5269929173052"></a><a name="en-us_topic_0169936667_li5269929173052"></a>DELETE /v2.0/{project_id}/log-groups/{group_id}</p>
</li></ul>
<ul id="lts_02_0005__en-us_topic_0169936667_ul0109191102213"><li class="msonormal" id="lts_02_0005__en-us_topic_0169936667_li21091415229">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0005__en-us_topic_0169936667_table805068" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="lts_02_0005__en-us_topic_0169936667_row57933110"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.1"><p id="lts_02_0005__en-us_topic_0169936667_p62070358"><strong id="lts_02_0005__en-us_topic_0169936667_b136211338339">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.2"><p id="lts_02_0005__en-us_topic_0169936667_p61643119"><strong id="lts_02_0005__en-us_topic_0169936667_b9482113423316">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.3"><p id="lts_02_0005__en-us_topic_0169936667_p27036712"><strong id="lts_02_0005__en-us_topic_0169936667_b18481103510334">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.4"><p id="lts_02_0005__en-us_topic_0169936667_p42490025"><strong id="lts_02_0005__en-us_topic_0169936667_b19317163614335">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="lts_02_0005__en-us_topic_0169936667_row19139995"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0005__en-us_topic_0169936667_p6835749">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0005__en-us_topic_0169936667_p16824816">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0005__en-us_topic_0169936667_p20632868">String</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0005__en-us_topic_0169936667_p60649575">Project ID</p>
</td>
</tr>
<tr id="lts_02_0005__en-us_topic_0169936667_row8975271"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0005__en-us_topic_0169936667_p55908359">group_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0005__en-us_topic_0169936667_p32283211">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0005__en-us_topic_0169936667_p64803292">String</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0005__en-us_topic_0169936667_p14575265">ID of a created log group</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="lts_02_0005__en-us_topic_0169936667_section16700806"><h4 class="sectiontitle">Request</h4><ul id="lts_02_0005__en-us_topic_0169936667_ul39745794"><li id="lts_02_0005__en-us_topic_0169936667_li22167833">Request parameters<p id="lts_02_0005__en-us_topic_0169936667_p65292777"><a name="lts_02_0005__en-us_topic_0169936667_li22167833"></a><a name="en-us_topic_0169936667_li22167833"></a>None</p>
</li><li id="lts_02_0005__en-us_topic_0169936667_li50764081">Example request<pre class="screen" id="lts_02_0005__en-us_topic_0169936667_screen54223547">DELETE /v2.0/{project_id}/log-groups/{group_id}</pre>
</li></ul>
</div>
<div class="section" id="lts_02_0005__en-us_topic_0169936667_section16089528"><h4 class="sectiontitle">Response</h4><ul id="lts_02_0005__en-us_topic_0169936667_ul30031202"><li id="lts_02_0005__en-us_topic_0169936667_li1845369">Response parameters<p id="lts_02_0005__en-us_topic_0169936667_p16608326"><a name="lts_02_0005__en-us_topic_0169936667_li1845369"></a><a name="en-us_topic_0169936667_li1845369"></a>None</p>
</li><li id="lts_02_0005__en-us_topic_0169936667_li15257210">Example response<p id="lts_02_0005__en-us_topic_0169936667_p3097166"><a name="lts_02_0005__en-us_topic_0169936667_li15257210"></a><a name="en-us_topic_0169936667_li15257210"></a>None</p>
</li></ul>
</div>
<div class="section" id="lts_02_0005__en-us_topic_0169936667_section10588031"><h4 class="sectiontitle">Returned Value</h4><ul id="lts_02_0005__en-us_topic_0169936667_ul49543907"><li id="lts_02_0005__en-us_topic_0169936667_li43241981">Normal<p id="lts_02_0005__en-us_topic_0169936667_p19624683457"><a name="lts_02_0005__en-us_topic_0169936667_li43241981"></a><a name="en-us_topic_0169936667_li43241981"></a>204</p>
</li><li id="lts_02_0005__en-us_topic_0169936667_li44860134">Abnormal<p id="lts_02_0005__en-us_topic_0169936667_p8911139194318"><a name="lts_02_0005__en-us_topic_0169936667_li44860134"></a><a name="en-us_topic_0169936667_li44860134"></a>For details, see <a href="lts_api_0020.html">Status Codes</a>.</p>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_02_0002.html">Log Group Management (Old Version)</a></div>
</div>
</div>