While deleting the book check if there are active loans

If there are active loans on a book it cant be deleted