You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Milind Bhandarkar (JIRA)" <ji...@apache.org> on 2008/05/31 00:24:45 UTC

[jira] Created: (HADOOP-3474) Need an option -rm and -rmr to *not* move to Trash, but actually delete

Need an option -rm and -rmr to *not* move to Trash, but actually delete
-----------------------------------------------------------------------

                 Key: HADOOP-3474
                 URL: https://issues.apache.org/jira/browse/HADOOP-3474
             Project: Hadoop Core
          Issue Type: New Feature
          Components: fs
    Affects Versions: 0.17.0
            Reporter: Milind Bhandarkar


By default, when Trash is enabled, -rm and -rmr just move files/directories to .Trash, which are actually deleted after some time set in the config.

When DFS gets full, we need to quickly create space on it by deleting files, so it will be good to have a --force option to both -rm and -rmr, so that files are actually deleted and not moved.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3474) Need an option -rm and -rmr to *not* move to Trash, but actually delete

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601364#action_12601364 ] 

Owen O'Malley commented on HADOOP-3474:
---------------------------------------

In such situations, I use:

{code}
hadoop fs -rmr foo bar .Trash
{code}

> Need an option -rm and -rmr to *not* move to Trash, but actually delete
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-3474
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3474
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: fs
>    Affects Versions: 0.17.0
>            Reporter: Milind Bhandarkar
>
> By default, when Trash is enabled, -rm and -rmr just move files/directories to .Trash, which are actually deleted after some time set in the config.
> When DFS gets full, we need to quickly create space on it by deleting files, so it will be good to have a --force option to both -rm and -rmr, so that files are actually deleted and not moved.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.