[backend] Ask for confirmation before deleting a line item

Fixes #3110