code: public static void moveToTrash(FileSystem fs, Path path) throws IOException {
      Trash trash = new Trash(fs, new Configuration());
      trash.moveToTrash(path);
    }
docs: Moves the object to the filesystem trash according to the file system policy.
  @param fs FileSystem object
  @param path Path to the object to be moved to trash.
  @throws IOException