Bug 39913

Summary: Fully delete patrons when removing due to refused GDPR consent
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 21336    
Bug Blocks:    

Description Andrew Fuerste-Henry 2025-05-15 18:16:38 UTC
When cleanup_database deletes patrons based on the PatronRemovalDelay system preference, it sends those patrons to the deleteborrowers table. It seems like it would be more in keeping with user/patron expectations to fully delete those borrowers, skipping deletedborrowers entirely.

We're looking at developing a feature for recovering borrowers from deletedborrowers, and we definitely would not want to allow restoration of patrons who declined GDPR consent. That'd be easier to avoid if we just delete them entirely in the first place.