public void deleteRules() { // Lock it! mLock.lock(); try { startTransaction(); rulesTable.deleteAllEntries(localDatabase); } catch (DBException e) { Logger.error(this, "Problems starting transaction"); } finally { endTransaction(); mLock.unlock(); } }