In version 10/10 i was able to cancel and invoice then delete the cancel invoice or cancel stock entry then delete the stock entry. Now in version 13 i notice event if i cancel all link item and try am still not able to delete the link itme. Is there some kind of flag i can turen on for this?
You can’t delete invoices or stock entries:
https://docs.erpnext.com/docs/user/manual/en/accounts/articles/immutable-ledger-in-erpnext