How To Implement Soft Delete in Ash?

How can one implement soft delete in Ash so that:

  1. When destroy action is called, the system add a timestamp to deleted_at columns.
  2. When the reading action is called, only columns with deleted_at = NULL are returned.
  3. The user can restore deleted data by setting deleted_at=NULL

Does this help?

2 Likes

Yes. Thank you.

1 Like