Set up delete item function.