OOIION-1542: Fix attachment delete