Quantcast
Channel: Koha Geek
Viewing all articles
Browse latest Browse all 155

Delete records in Koha

$
0
0
In certain occasions need to empty bibliographic, patron and transaction details from Koha and clean the installation to start the process again. The user has to go to Koha database and empty the concerned tables. Apply following commands to login to the MySQL database;

sudo su
mysql -uroot -p
use koha_library;

Delete all bibliographic details

SET FOREIGN_KEY_CHECKS=0;

TRUNCATE items; 
TRUNCATE deleted_items;

TRUNCATE biblioitems; 
TRUNCATE biblio; 
TRUNCATE deletedbiblioitems; 
TRUNCATE deletedbiblio; 

Delete transactions (Issue, return)

TRUNCATE old_issues; 
TRUNCATE issues; 

Delete borrowers details

TRUNCATE borrowers; 
TRUNCATE deletedborrowers;


SET FOREIGN_KEY_CHECKS=1;


Viewing all articles
Browse latest Browse all 155

Trending Articles