[Core] Fixes: Deleting multiple attachments does not work.