def clear(self):
if not os.path.isdir(self.fdir):<EOL><INDENT>os.makedirs(self.fdir, exist_ok=True)<EOL>return<EOL><DEDENT>for f in os.listdir(self.fdir):<EOL><INDENT>del self[f]<EOL><DEDENT>
Completely resets the database. This means that all information in
the local cache and on disc will be erased.