You are welcome to roll back the year end lock if you wish to delete them, but if they’re tagged in anyway then the opposite end (e.g. paying an invoice, a bank transfer etc.) would also be removed.
I’ve included a link below to guide to unlocking the year end: