XEts.delete
You're seeing just the function
delete
, go back to XEts module for more information.
Link to this function
delete(tab)
Specs
delete(t()) :: true
Deletes the entire table.
Equivalent to :ets.delete/1.
Link to this function
delete(tab, key)
Specs
Delete an item from the table.
Examples
iex> XEts.new(:table) |> XEts.insert(x: 1, y: 2) |> XEts.delete(:x) |> XEts.to_list()
[{:y, 2}]
iex> %{tab: tab} = XEts.new(:table1) |> XEts.insert(x: 1, y: 2)
iex> XEts.delete(tab, :y)
iex> XEts.to_list(tab)
[{:x, 1}]
Link to this function
delete(tab, key, meta)
Specs
Delete a key given metadata.