Auto Repeat deadlock!

Purchase Invoice cannot be cancelled and delete because it is bound to an Auto Repeat while likewise the Auto Repeat cannot be deleted because it is bound to a Purchase Invoice:
image
the other side of the deadlock is:
image

Anyone?

it’s not the same purchase invoice .

Fair enough:
image

Here is with the same invoice…

The second message is relevant, some documents can’t be deleted so they’ve option to disable. e.g. user is linked with way too many things, deleting them is not a good idea.

Why is there an option to Cancel related Docs then? Either it is one way or all the way. Does not make any sense. Possibly will have to erase the repeate head and details from the db to release the PI.