Delete not working
Just to say I realise that because this is being used in some custom code on a page it may need to be paid support, but am mentioning it here first of all. It may hopefully not be too involved just because I'm stumped!
I have attached the page here, with details below.