delete purchase function with confirm-button