code: public static boolean moveToTrash(FileSystem fs, Path path, Props props) throws IOException {
      return TrashFactory.createTrash(fs, props.toProperties()).moveToTrash(path);
    }
docs: Move a path to trash. The absolute path of the input path will be replicated under the trash directory.
  @param fs {@link org.apache.hadoop.fs.FileSystem} where path and trash exist.
  @param path {@link org.apache.hadoop.fs.FileSystem} path to move to trash.
  @param props {@link java.util.Properties} containing trash configuration.
  @return true if move to trash was done successfully.
  @throws IOException