OOIION-1542: Fix attachment delete
Merge pull request #424 from mmeisinger/fix1542_att_r2

OOIION-1542: Fix attachment delete