Deleting item from list view and tinyDB

I think I got this right, I used the global variable "number" to store it seperatly, then called it for each on the panic button.