# File lib/active_ldap/adapter/base.rb, line 151 def delete(targets, options={}) targets = [targets] unless targets.is_a?(Array) return if targets.empty? target = nil begin operation(options) do targets.each do |target| yield(target) end end rescue LdapError::NoSuchObject raise EntryNotFound, _("No such entry: %s") % target end end