class PStore

def delete(key)

Raises an exception if called outside a transaction block.

Returns +nil+ if there is no such key.

end
end
store.delete(:bat)
store[:bat] = 3
store.transaction do
example_store do |store|

Removes and returns the value at +key+ if it exists:
def delete(key)
  in_transaction_wr
  @table.delete key
end