Remove Subfield using ruby

Hi badger thank you, but i tweak a little

            ruby { code => '
                    event.get("attachments").each_with_index { |b,index|
                            event.remove("[attachments][#{index}][documentCharacteristic]")
                    }
                    '
            }