Bug 39515

Summary: Add where parameter to delete_patrons.pl
Product: Koha Reporter: Aude Charillon <aude.charillon>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: robin
Version: unspecified   
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:

Description Aude Charillon 2025-04-01 15:27:20 UTC
Some scripts, like delete_items.pl for example, have a -where parameter which allows for SQL statements to be used as additional parameters.

It would be useful to have a similar -where parameter in the batch delete patrons script. Library teams have different requirements regarding which patrons should be deleted (and when), and even their own definition of inactive patrons. Having a -where parameter would offer them more flexibility to automatically delete patrons using the script, rather than having to do this manually.