HDFS Administration Guide
Also available as:
PDF
loading table of contents...

Delete Files from an Encryption Zone

You cannot move data from an Encryption Zone to a global Trash bin outside of the encryption zone.

To delete files from an encryption zone, use one of the following approaches:

  1. When deleting the file via CLI, use the -skipTrash option. For example:

    hdfs dfs -rm /zone_name/file1 -skipTrash

  2. When deleting the file via CLI, use the -skipTrash option. For example:

    hdfs dfs -rm /zone_name/file1 -skipTrash

  3. (Hive only) Use PURGE, as in DROP TABLE ... PURGE. This skips the Trash bin even if the trash feature is enabled.