add code to delete a record