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 -puse 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;
Information courtesy
Robin Sheat