forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
23 lines
2.8 KiB
HTML
23 lines
2.8 KiB
HTML
<a name="obs_03_1066"></a><a name="obs_03_1066"></a>
|
|
|
|
<h1 class="topictitle1">Deleting a File or Folder</h1>
|
|
<div id="body0000001239450481"><p id="obs_03_1066__en-us_topic_0045828975_p54575646">Delete an existing file or folder as needed.</p>
|
|
<div class="section" id="obs_03_1066__en-us_topic_0045828975_section21418771"><h4 class="sectiontitle">Context</h4><p id="obs_03_1066__en-us_topic_0045828975_p9160681">Deleting a folder will also delete all files in it. Ensure that all files in a folder can be deleted before deleting the folder.</p>
|
|
<p id="obs_03_1066__en-us_topic_0045828975_p6389837717117">Deleting unwanted files or folders saves space and costs.</p>
|
|
<p id="obs_03_1066__p499195171442">You can use lifecycle management to periodically delete some unwanted files or batch delete all files or folders in OBS buckets. </p>
|
|
</div>
|
|
<div class="section" id="obs_03_1066__section16973481116"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_1066__en-us_topic_0045828975_ol3817695"><li id="obs_03_1066__en-us_topic_0045828975_li34359256"><span>Log in to OBS Browser+.</span></li><li id="obs_03_1066__en-us_topic_0045828975_li40797849"><span>Go to the target bucket. Select the file or folder you want to delete and click <strong id="obs_03_1066__b23202506224">Delete</strong>.</span></li><li id="obs_03_1066__en-us_topic_0045828975_li65311315"><span>In the displayed dialog box, click <strong id="obs_03_1066__b286119532315">Yes</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="obs_03_1066__section179449661719"><h4 class="sectiontitle">Important Notes</h4><p id="obs_03_1066__p652773411373">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.</p>
|
|
<p id="obs_03_1066__p16447932173719"></p>
|
|
<p id="obs_03_1066__p1577595333611">To address this problem, you are advised to delete directories in either of the following ways:</p>
|
|
<ol id="obs_03_1066__ol737482317811"><li id="obs_03_1066__li4374102311819">On the Hadoop client that has OBSA, an OBS client plugin, embedded, run the <strong id="obs_03_1066__b19260583456">hadoop fs - rmr obs://{</strong><em id="obs_03_1066__i5926155810457">Name of a parallel file system</em><strong id="obs_03_1066__b69261458104515">}/{</strong><em id="obs_03_1066__i1492685813456">Directory name</em><strong id="obs_03_1066__b39261058164513">}</strong> command.</li><li id="obs_03_1066__li58243252088">Configure a lifecycle rule 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_1059.html">Object Operations</a></div>
|
|
</div>
|
|
</div>
|
|
|