|
@@ -418,15 +418,15 @@
|
|
|
<code>Usage: hdfs dfs -rm [-skipTrash] URI [URI …] </code>
|
|
|
</p>
|
|
|
<p>
|
|
|
- Delete files specified as args. Only deletes non empty directory and files. If the <code>-skipTrash</code> option
|
|
|
+ Delete files specified as args. Only deletes files. If the <code>-skipTrash</code> option
|
|
|
is specified, the trash, if enabled, will be bypassed and the specified file(s) deleted immediately. This can be
|
|
|
useful when it is necessary to delete files from an over-quota directory.
|
|
|
- Refer to rmr for recursive deletes.<br/>
|
|
|
+ Use -rm -r or rmr for recursive deletes.<br/>
|
|
|
Example:
|
|
|
</p>
|
|
|
<ul>
|
|
|
<li>
|
|
|
- <code> hdfs dfs -rm hdfs://nn.example.com/file /user/hadoop/emptydir </code>
|
|
|
+ <code> hdfs dfs -rm hdfs://nn.example.com/file </code>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<p>Exit Code:</p>
|
|
@@ -442,7 +442,7 @@
|
|
|
<p>
|
|
|
<code>Usage: hdfs dfs -rmr [-skipTrash] URI [URI …]</code>
|
|
|
</p>
|
|
|
- <p>Recursive version of delete. If the <code>-skipTrash</code> option
|
|
|
+ <p>Recursive version of delete. The rmr command recursively deletes the directory and any content under it. If the <code>-skipTrash</code> option
|
|
|
is specified, the trash, if enabled, will be bypassed and the specified file(s) deleted immediately. This can be
|
|
|
useful when it is necessary to delete files from an over-quota directory.<br/>
|
|
|
Example:
|