Deleting barcode after scanning from mysql database [closed]

is it possible to delete the barcode after scanning from the MySQL database… using JavaScript and html. Thank you

I can delete it after scanning, but I would have to click on a button, I wonder if it is possible to insert it into the input field automatically and then delete it with a message that it was deleted successfully. thank you