ash v1.13.3 Ash.Resource.Dsl.Destroy View Source
Link to this section Summary
Link to this section Functions
Declares a destroy action. For calling this action, see the Ash.Api documentation.
Examples
destroy :soft_delete, primary?: trueArguments
:name- The name of the action
Options
:primary?- Whether or not this action should be used when no action is specified by the caller. The default value isfalse.:accept- The list of attributes and relationships to accept. Defaults to all attributes on the resource. Has no effect unlesssoft?is specified.:soft?- If specified, the destroy action calls the datalayer's update function with any specified changes.