Hi Paula78,
I'm here to share what happens when you delete an unpurchased transaction.
Yes, you're correct. Once the customer decides not to push through the transaction and you delete it from the system, the items linked to it will go back to the inventory list.
Furthermore, I've added these articles as your guide in creating invoices and recording their payments:
I'm always around whenever you have concerns about managing inventories.