@Override
  public boolean delete(Type type, String id) throws NotFoundException {
    Path p = new Path(getPath(type) + "/" + id);
    try {
      fs.delete(p, true);
    } catch (IOException e) {
      throw new NotFoundException("Node " + p + " was not found: " +
        e.getMessage());
    }
    return false;
  }
HDFS implementation of templeton storage.

 This implementation assumes that all keys in key/value pairs are
 chosen such that they don't have any newlines in them.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/HDFSStorage.java