# HDFS .Trash

If you want to avoid deleted files being stored in the ‘recycle bin’ (at \$HOME/.Trash) in HDFS, then the -skipTrash argument can be added to -rm.

Explanation:
The -skipTrash option will bypass trash, if enabled, and delete the specified file(s) immediately. This can be useful when it is necessary to delete files from an over-quota directory.

Example:

hdfs dfs -rm -skipTrash /user/supergirl/emptydir