#
View Source Ash.Resource.ManualDestroy behaviour (ash v2.14.2)

A module to implement manual destroy actions.

# Link to this section Summary

## Types

context()

## Callbacks

destroy( changeset, opts, context )

# Link to this section Types

Link to this type

# context()

View Source

    @type context() :: %{
      optional(:actor) => term(),
      optional(:tenant) => term(),
      optional(:authorize?) => boolean(),
      optional(:api) => module(),
      optional(any()) => any()
    }

# Link to this section Callbacks

Link to this callback

# destroy( changeset, opts, context )

View Source

    @callback destroy(
      changeset :: Ash.Changeset.t(),
      opts :: Keyword.t(),
      context :: context()
    ) :: {:ok, Ash.Resource.record()} | {:error, term()}