Mongo.Repo.delete

You're seeing just the callback delete, go back to Mongo.Repo module for more information.
Link to this callback

delete(doc, opts)

View Source (optional)

Specs

delete(doc :: Mongo.Collection.t(), opts :: Keyword.t()) ::
  {:ok, Mongo.Collection.t()} | {:error, any()}

Deletes a document struct from the database and returns a {:ok, doc} tuple.

For all options see Options

Example

MyApp.Repo.delete(post)