doc-exports/docs/swr/api-ref/swr_02_0031.html
Dong, Qiu Jian f5c28c856a SWR API update 20241012
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-10-18 07:19:46 +00:00

132 lines
9.3 KiB
HTML

<a name="swr_02_0031"></a><a name="swr_02_0031"></a>
<h1 class="topictitle1">Deleting an Image Repository</h1>
<div id="body1531798197428"><div class="section" id="swr_02_0031__section14905762191056"><h4 class="sectiontitle">Function</h4><p id="swr_02_0031__p38546794191926">Delete an image repository in an organization.</p>
</div>
<div class="section" id="swr_02_0031__section10482810165331"><h4 class="sectiontitle">URI</h4><p id="swr_02_0031__p1260214128102">DELETE /v2/manage/namespaces/{<em id="swr_02_0031__i484014518314">namespace</em>}/repos/{<em id="swr_02_0031__i19671204911314">repository</em>}</p>
<p id="swr_02_0031__p6306122418154">For details about parameters, see <a href="#swr_02_0031__table184146147323">Table 1</a>.</p>
<div class="tablenoborder"><a name="swr_02_0031__table184146147323"></a><a name="table184146147323"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__table184146147323" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0031__row1415114163212"><th align="left" class="cellrowborder" valign="top" width="16.13%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0031__p9415114193219">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.690000000000001%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0031__p1450315424313">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.86%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0031__p15022419437">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="58.32000000000001%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0031__p841591415328">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0031__row941641411326"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0031__p8416314113213">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0031__p10507114164313">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="12.86%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0031__p105058419438">String</p>
</td>
<td class="cellrowborder" valign="top" width="58.32000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0031__p1204822152314">Organization name.</p>
</td>
</tr>
<tr id="swr_02_0031__row7417171415327"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0031__p84177144326">repository</p>
</td>
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0031__p142591841114317">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="12.86%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0031__p13259041124313">String</p>
</td>
<td class="cellrowborder" valign="top" width="58.32000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0031__p181285313257">Image repository name.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0031__section105184374167"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0031__row252063720166"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="swr_02_0031__p16523153718166">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="swr_02_0031__p3527137111619">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="swr_02_0031__p252953701612">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="swr_02_0031__p3531173791613">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0031__row11520237131610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="swr_02_0031__p12532537111617">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="swr_02_0031__p145341371164">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="swr_02_0031__p1153613731615">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="swr_02_0031__p17539103720168">Message body type (format). The value can be <strong id="swr_02_0031__b5133750177957">application/json</strong> or <strong id="swr_02_0031__b11130553017957">charset=utf-8 application/json</strong>.</p>
<p id="swr_02_0031__p1754113741618">The default value is <strong id="swr_02_0031__b824316417101">application/json</strong>.</p>
</td>
</tr>
<tr id="swr_02_0031__row13520173731618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="swr_02_0031__p954343761618">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="swr_02_0031__p1654513378163">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="swr_02_0031__p185481937141617">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="swr_02_0031__p11550837191618">User token.</p>
<p id="swr_02_0031__p555213791611">The token can be obtained by calling an IAM API. The value of <strong id="swr_02_0031__b110721067871049">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_0031__section855311377162"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0031__p7555937201613">None</p>
</div>
<div class="section" id="swr_02_0031__section1755816377162"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0031__screen20562143717160">DELETE https://{endpoint}/v2/manage/namespaces/{namespace}}/repos/{repository}</pre>
</div>
<div class="section" id="swr_02_0031__section1056415372164"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0031__p1056693771612">None</p>
</div>
<div class="section" id="swr_02_0031__section5365169104253"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__table83715129124" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0031__row0371712141214"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.7.2.1.3.1.1"><p id="swr_02_0031__p3371112171215">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.7.2.1.3.1.2"><p id="swr_02_0031__p13781210124">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0031__row103819129123"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.1 "><p id="swr_02_0031__p1238912101213">204</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.2 "><p id="swr_02_0031__p73871261219">The brief information about the image repository is successfully deleted.</p>
</td>
</tr>
<tr id="swr_02_0031__row1338151211120"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.1 "><p id="swr_02_0031__p23851210121">400</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.2 "><p id="swr_02_0031__p1238161271215">Request error. Error information is returned.</p>
</td>
</tr>
<tr id="swr_02_0031__row73068300568"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.1 "><p id="swr_02_0031__p153065309562">401</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.2 "><p id="swr_02_0031__p1030623016566">Authentication failed.</p>
</td>
</tr>
<tr id="swr_02_0031__row738171215127"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.1 "><p id="swr_02_0031__p43881201211">404</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.2 "><p id="swr_02_0031__p4381212121219">The repository does not exist.</p>
</td>
</tr>
<tr id="swr_02_0031__row1162431422920"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.1 "><p id="swr_02_0031__p14625141492918">406</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.2 "><p id="swr_02_0031__p145322112919">The repository cannot be deleted because it contains images.</p>
</td>
</tr>
<tr id="swr_02_0031__row13381712111212"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.1 "><p id="swr_02_0031__p33819120123">500</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.2.1.3.1.2 "><p id="swr_02_0031__p638101219128">Internal error. Error information is returned.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0031__section134071631161117"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0031__p15408431161114">For details, see <a href="swr_02_0024.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001420528490.html">Image Repository Management</a></div>
</div>
</div>