How to reduce the number of stock items

here I have a problem where I don’t understand and can’t reduce the number of stock items that I added, even though all the items have been sold out but none of the stock items have decreased and can still be purchased, this is the block I’m using… is there anyone who can? help me?

2 posts were merged into an existing topic: How to reduce the number of stock items and display detailed transaction history