XEts.delete_object

You're seeing just the function delete_object, go back to XEts module for more information.
Link to this function

delete_object(tab, key)

Specs

delete_object(t(), any()) :: t()
delete_object(tab(), any()) :: boolean()

Delete an object from the table.

Examples

iex> XEts.new(:table) |> XEts.insert(x: 1, y: 2) |> XEts.delete_object({:x, 1}) |> XEts.to_list()
[{:y, 2}]

iex> %{tab: tab} = XEts.new(:table1) |> XEts.insert(x: 1, y: 2)
iex> XEts.delete_object(tab, {:y, 2})
iex> XEts.to_list(tab)
[{:x, 1}]
Link to this function

delete_object(tab, key, meta)

Specs

delete_object(t(), any(), meta()) :: t()
delete_object(tab(), any(), meta()) :: boolean()

Delete an object from the table given metadata.

Examples

iex> tab = XEts.new(:table)
iex> XEts.insert(tab, x: 1, y: 2)
iex> meta = :shards_meta.get(tab.tab)
iex> tab |> XEts.delete_object({:x, 1}, meta) |> XEts.to_list()
[{:y, 2}]