<<

NAME

delete_patrons - This script deletes patrons

SYNOPSIS

delete_patrons.pl [-h|--help] [-v|--verbose] [-c|--confirm] [--not_borrowed_since=DATE] [--expired_before=DATE] [--last-seen=DATE] [--category_code=CAT] [--library=LIBRARY]

Dates should be in ISO format, e.g., 2013-07-19, and can be generated with `date -d '-3 month' "+%Y-%m-%d"`.

The options to select the patron records to delete are cumulative. For example, supplying both --expired_before and --library specifies that that patron records must meet both conditions to be selected for deletion.

OPTIONS

-h|--help

Print a brief help message

--not_borrowed_since

Delete patrons who have not borrowed since this date.

--expired_before

Delete patrons with an account expired before this date.

--last_seen

Delete patrons who have not been connected since this date.

The system preference TrackLastPatronActivity must be enabled to use this option.

--category_code

Delete patrons who have this category code.

--library

Delete patrons in this library.

-c|--confirm

This flag must be provided in order for the script to actually delete patron records. If it is not supplied, the script will only report on the patron records it would have deleted.

-v|--verbose

Verbose mode.

AUTHOR

Jonathan Druart <jonathan.druart@biblibre.com>

COPYRIGHT

Copyright 2013 BibLibre

LICENSE

This file is part of Koha.

Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

You should have received a copy of the GNU General Public License along with Koha; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

<<