You're seeing just the function for_destroy, go back to Ash.Changeset module for more information.
Link to this function

for_destroy(initial, action_name, params \\ %{}, opts \\ [])

View Source

Constructs a changeset for a given destroy action, and validates it.


  • :actor - set the actor, which can be used in any Ash.Resource.Changes configured on the action. (in the context argument)
  • :tenant - set the tenant on the changeset

Anything that is modified prior to for_destroy/4 is validated against the rules of the action, while anything after it is not.

Once a changeset has been validated by for_destroy/4, it isn't validated again in the action. New changes added are validated individually, though. This allows you to create a changeset according to a given action, and then add custom changes if necessary.