Files
doc-exports/docs/swr/api-ref/swr_02_0027.html
qiujiandong1 73ffc816f4 SWR API 20250521 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2025-10-29 10:18:41 +00:00

124 lines
10 KiB
HTML

<a name="swr_02_0027"></a><a name="swr_02_0027"></a>
<h1 class="topictitle1">Deleting an Organization</h1>
<div id="body8662426"><div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section56511152115420"><h4 class="sectiontitle">Description</h4><p id="swr_02_0027__en-us_topic_0000001185914312_p46511152155415">Delete an organization.</p>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section56518525546"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0027__en-us_topic_0000001185914312_p116515521541">None</p>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section16511152195410"><h4 class="sectiontitle">URI</h4><p id="swr_02_0027__en-us_topic_0000001185914312_p865116520546">DELETE /v2/manage/namespaces/{namespace}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0027__en-us_topic_0000001185914312_table565285216543" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameter</caption><thead align="left"><tr id="swr_02_0027__en-us_topic_0000001185914312_row18651185245418"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0027__en-us_topic_0000001185914312_p76521752135419">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="swr_02_0027__en-us_topic_0000001185914312_p26521252155410">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="swr_02_0027__en-us_topic_0000001185914312_p565220525549">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="swr_02_0027__en-us_topic_0000001185914312_p12652105211542">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0027__en-us_topic_0000001185914312_row1165135235410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p146529522547">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p13652165216548">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0027__en-us_topic_0000001185914312_p11652752175411">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0027__en-us_topic_0000001185914312_p14652195213548">Organization name. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section56524522544"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0027__en-us_topic_0000001185914312_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0027__en-us_topic_0000001185914312_row7653185285417"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0027__en-us_topic_0000001185914312_p465312525547">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="swr_02_0027__en-us_topic_0000001185914312_p2065313522541">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="swr_02_0027__en-us_topic_0000001185914312_p1365375213543">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="swr_02_0027__en-us_topic_0000001185914312_p065375295414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0027__en-us_topic_0000001185914312_row126531452195413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p15653145245411">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p3653252115419">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0027__en-us_topic_0000001185914312_p46531752125414">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0027__en-us_topic_0000001185914312_p1165325275410">Message body type (format). The value can be <strong id="swr_02_0027__en-us_topic_0000001185914312_b13343142912268">application/json</strong> or <strong id="swr_02_0027__en-us_topic_0000001185914312_b203432292264">charset=utf-8 application/json</strong>.</p>
<p id="swr_02_0027__en-us_topic_0000001185914312_p10653752135414">Default value: <strong id="swr_02_0027__en-us_topic_0000001185914312_b175276383263">application/json</strong></p>
</td>
</tr>
<tr id="swr_02_0027__en-us_topic_0000001185914312_row11653175275413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p7653552195414">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p16653952175414">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0027__en-us_topic_0000001185914312_p165414524549">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0027__en-us_topic_0000001185914312_p1565445295415">User token.</p>
<p id="swr_02_0027__en-us_topic_0000001185914312_p1365411526544">The token can be obtained by calling an IAM API. The value of <strong id="swr_02_0027__en-us_topic_0000001185914312_b64129910211846">X-Subject-Token</strong> in the response header is the user token.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section13654125205419"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0027__en-us_topic_0000001185914312_p1665411527549">None</p>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section206541952155418"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0027__en-us_topic_0000001185914312_screen965420524548">DELETE https://{endpoint}/v2/manage/namespaces/{namespace}</pre>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section4654145211544"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0027__en-us_topic_0000001185914312_p166541752145412">None</p>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section13654652165420"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0027__en-us_topic_0000001185914312_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0027__en-us_topic_0000001185914312_row465445275415"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0027__en-us_topic_0000001185914312_p196551852195411">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="swr_02_0027__en-us_topic_0000001185914312_p765585215544">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0027__en-us_topic_0000001185914312_row1865495295417"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p15655115215417">204</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p136551252195418">Deletion succeeded.</p>
</td>
</tr>
<tr id="swr_02_0027__en-us_topic_0000001185914312_row1965415522549"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p1165515215546">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p26551852105417">Request error.</p>
</td>
</tr>
<tr id="swr_02_0027__en-us_topic_0000001185914312_row66541152205419"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p465535213548">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p20655952145413">Authentication failed.</p>
</td>
</tr>
<tr id="swr_02_0027__en-us_topic_0000001185914312_row26546526549"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p1165525295414">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p465565235412">Organization not found.</p>
</td>
</tr>
<tr id="swr_02_0027__en-us_topic_0000001185914312_row3654165214544"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p10655652105419">406</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p176562052125417">Failed to delete the organization because there are images in it.</p>
</td>
</tr>
<tr id="swr_02_0027__en-us_topic_0000001185914312_row17655105214543"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0027__en-us_topic_0000001185914312_p196561952135410">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0027__en-us_topic_0000001185914312_p20656165285417">Internal error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0027__en-us_topic_0000001185914312_section765625225410"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0027__en-us_topic_0000001185914312_p565635218543">For details, see <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="swr_02_0025.html">Organization Management</a></div>
</div>
</div>