[quote="ajb":jk4msvn2]Yes, you've deleted the "addon", but not the notes 🙂
Proper uninstall code:
$x = 'custom_contracts';
Utils_AttachmentCommon::persistent_mass_delete($x);
Utils_AttachmentCommon::delete_addon($x);
[/quote:jk4msvn2]
Thank you again. Works fine. With your help everything seems so easy 🙂 The uninstall method which I applied was taken from sales opportunities, but it looks like I've copied code without learning.