def destroy_datastore(paths):
    """Destroys the appengine datastore at the specified paths."""
    for path in paths.values():
        if not path:
            continue
        try:
            if os.path.isdir(path):
                shutil.rmtree(path)
            else:
                os.remove(path)
        except __HOLE__, error:
            if error.errno != 2:
                logging.error("Failed to clear datastore: %s" % error)
dataset/ETHPy150Open adieu/djangoappengine/db/base.py/destroy_datastore