Endon.delete_where

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

delete_where(conditions \\ [])

View Source

Specs

delete_where(where_conditions()) :: {integer(), nil | [term()]}

Delete multiple records in the data store based on conditions.

Delete all the records that match the given conditions (the same as for where/2).

Note: If you don't supply any conditions, all records will be deleted.

It returns a tuple containing the number of entries and any returned result as second element. The second element is nil by default unless a select is supplied in the update query.

Examples

# this line using Ecto.Repo
from(p in Post, where: p.user_id == 123) |> MyRepo.delete_all

# is the same as this line in Endon
Post.delete_where(user_id: 123)