Unfortunately there is no way to cancel or rivers are transaction in Bitcoin. That is one of the biggest issues with Bitcoin.
Yes, you are right that Bitcoin transactions are irreversible; they cannot be reversed or canceled. The design of the transaction on the Bitcoin network is irreversible. This means that if you send the transaction and, after broadcasting it, verifying the miners, and completing it, you can neither reverse nor cancel the complete transaction without any reason. This is impossible, and even more impossible given the nature of Bitcoin.
But, sir, I have the right to disagree with you that irreversible transactions cannot be a misfortune of Bitcoin; rather, they are a virtue of Bitcoin. This is the reason why Bitcion is called decentralized. The second is that due to this irreversible transaction, Bitcoin eliminates the risk of chargebacks, and if Bitcoin did not have this quality, then the circumstance that is based on the decentralized standard would not fit in, but it would also be like normal centralized authorities. It would not be good.