"To enable the trash feature and to set the time delay for the trash removal in Hadoop, we have to edit the fs.trash.interval property in core-site.xml to the delay (and this has to be in minutes).
Ex: if you want users to have 10 hours (600 minutes) to restore a deleted file, you should specify following configuration parameter in the core-site.xml and setting the value to 0 will disable the Trash feature.
<property>
<name>fs.trash.interval</name>
<value>600</value>
</property>
"