def delete(self, key):
assert (self._txn is not None)<EOL>was_deleted = self._txn.delete(key)<EOL>if was_deleted:<EOL><INDENT>if self._stats:<EOL><INDENT>self._stats.dels += <NUM_LIT:1><EOL><DEDENT>if self._log:<EOL><INDENT>self._log.append((Transaction.DEL, key))<EOL><DEDENT><DEDENT>return was_deleted<EOL>
:param key:
:return: