doc-exports/docs/obs/umn/obs_03_0309.html
zhangyue 78cb06737e OBS UMN DOC
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-07-25 09:09:15 +00:00

19 lines
2.8 KiB
HTML

<a name="obs_03_0309"></a><a name="obs_03_0309"></a>
<h1 class="topictitle1">Deleting an Object</h1>
<div id="body1499758606806"><p id="obs_03_0309__p23374247205629">You can delete unnecessary files one by one or in a batch on OBS Console to save space and money.</p>
<div class="section" id="obs_03_0309__sbce25240b91d49e2a0d7b514a73a7da9"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_0309__en-us_topic_0066036524_ol36405904"><li id="obs_03_0309__li1421405614294"><span>In the bucket list, click the bucket you want to operate. The <strong id="obs_03_0309__obs_03_0307_b1395123914108">Overview</strong> page of the bucket is displayed.</span></li><li id="obs_03_0309__li1733753692411"><span>In the navigation pane, choose <strong id="obs_03_0309__obs_03_0307_b51941856151917">Objects</strong>.</span></li><li id="obs_03_0309__li1463890417452"><span>Select the file you want to delete, and choose <strong id="obs_03_0309__b152019501616">More</strong> &gt; <strong id="obs_03_0309__b873616741617">Delete</strong> on the right.</span><p><p id="obs_03_0309__en-us_topic_0066036524_p18694614">You can select multiple files and click <strong id="obs_03_0309__b1919669813155639">Delete</strong> above the file list to batch delete the files.</p>
</p></li><li id="obs_03_0309__en-us_topic_0066036524_li34033799"><span>Click <strong id="obs_03_0309__b187788533819">Yes</strong> to confirm the deletion.</span><p><p id="obs_03_0309__p667144781316">The object deletion task is displayed in the <strong id="obs_03_0309__b1117816723919">Task Management</strong> window.</p>
</p></li></ol>
</div>
<div class="section" id="obs_03_0309__section25814558719"><h4 class="sectiontitle">Important Notes</h4><p id="obs_03_0309__p104131716980">In big data scenarios, parallel file systems usually have deep directory levels and each directory has a large number of files. In such case, deleting directories from parallel file systems may fail due to timeout. To address this problem, you are advised to delete directories in either of the following ways:</p>
<ol id="obs_03_0309__ol737482317811"><li id="obs_03_0309__li4374102311819">On the Hadoop client that has OBSA, an OBS client plugin, embedded, run the <strong id="obs_03_0309__b11467148151710">hadoop fs - rmr obs://{</strong><em id="obs_03_0309__i44673851714">Name of a parallel file system</em><strong id="obs_03_0309__b146888201717">}/{</strong><em id="obs_03_0309__i1546818817176">Directory name</em><strong id="obs_03_0309__b94688891716">}</strong> command.</li><li id="obs_03_0309__li58243252088">Configure <a href="obs_03_0335.html">a lifecycle rule</a> for directories so that they can be deleted in background based on the preset lifecycle rule.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0302.html">Getting Started</a></div>
</div>
</div>