MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / delete_db

Method delete_db

keepercommander/sox/sqlite_storage.py:218–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 self._metadata.delete_all()
217
218 def delete_db(self):
219 try:
220 if self.close_connection:
221 self.close_connection()
222 else:
223 conn = self.get_connection()
224 conn.close()
225 os.remove(self.database_name)
226 except Exception as e:
227 logging.info(f'could not delete db from filesystem, name = {self.database_name}')
228 logging.info(f'Exception e:\n{e}')

Callers 2

clean_upMethod · 0.80
executeMethod · 0.80

Calls 3

get_connectionMethod · 0.80
closeMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected