Soft Delete Organisations

I want to soft delete organisations rather than hard delete for auditing reasons. Can i achieve using this?
const auth = betterAuth({ organizationDeletion: { disabled: true, //to disable it altogether beforeDelete: async(data, request)=>{ // a callback to run before deleting org }, afterDelete: async(data, request)=>{ // a callback to run after deleting org } } }) Also if i disabled: true does beforeDelete and afterDelete not fire at all?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?