public Path getTrashDir() throws Exception {
    return execute(new PrivilegedExceptionAction<Path>() {
      public Path run() throws IOException {
        TrashPolicy trashPolicy = TrashPolicy.getInstance(conf, fs,
            fs.getHomeDirectory());
        return trashPolicy.getCurrentTrashDir().getParent();
      }
    });
  }
Trash directory

@return trash directory
@throws Exception
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java