code: @Override
      public void delete(String path) throws IOException {
          FileSystem fs = FileSystem.get(conf);
          FileStatus[] fstatuss = fs.listStatus(new Path(path));
          if (fstatuss != null) {
              for (FileStatus fstatus : fstatuss) {
                  fs.delete(fstatus.getPath(), true);
              }
          }
          fs.delete(new Path(path), true);
      }
docs: {@inheritDoc}