Add a Delete button at the end of each row in the html file in 3.
When the button is click, a valued of the primary key of your table (e.g., paper_id) is passed to the deletePaper JavaScript function. The function uses AJAX to call deletepaper.php. One GET parameter is passed. In this example, paperID is passed to deletepaper.php.