({{, (RefLink[KeyDrop, paclet:ref/KeyDrop])[assoc,{(Subscript[key, 1]),(Subscript[key, 2]),…}] 
yields an association from which elements with keys (Subscript[key, i]) have been dropped. }, {, (RefLink[KeyDrop, paclet:ref/KeyDrop])[{(Subscript[assoc, 1]),(Subscript[assoc, 2]),…},keys]
gives a list of associations.}, {, (RefLink[KeyDrop, paclet:ref/KeyDrop])[keys]
represents an operator form of (RefLink[KeyDrop, paclet:ref/KeyDrop]) that can be applied to an expression.}})

OpenersNotesSection(Spacer1)Details

(RefLink[KeyDrop, paclet:ref/KeyDrop]) preserves the original order of elements.

Any (Subscript[key, i]) that does not appear in assoc is ignored.

(RefLink[KeyDrop, paclet:ref/KeyDrop]) can be applied not only to (RefLink[Association, paclet:ref/Association]) objects, but also to lists of rules.

(RefLink[KeyDrop, paclet:ref/KeyDrop])[keys][expr] is equivalent to (RefLink[KeyDrop, paclet:ref/KeyDrop])[expr,keys].

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (7)

Delete entry with the specified key from association:

KeyDrop[<|a->1,b->2|>,a]

Delete entries, given a list of keys:

KeyDrop[<|a->1,b->2,c->3,d->4|>,{a,d}]

Delete entries from several associations, given a list of keys:

KeyDrop[{<|a->1,b->2|>,<|c->3,d->4|>},{a,d}]

Delete entries from a list of rules, given a key:

KeyDrop[{a->1,b->2},a]

Delete entries from several lists:

KeyDrop[{{a->1,b->2},{b->3}},{b}]

Delete from a mixed list of an association and a list of rules:

KeyDrop[{<|a->1,b->2|>,{b->3,c->3}},b]

Use the operator form of (RefLink[KeyDrop, paclet:ref/KeyDrop]):

KeyDrop[{a,d}][<|a->1,b->2,c->3,d->4|>]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[KeyDropFrom, paclet:ref/KeyDropFrom])  ▪  (RefLink[KeyTake, paclet:ref/KeyTake])  ▪  (RefLink[KeySelect, paclet:ref/KeySelect])  ▪  (RefLink[Drop, paclet:ref/Drop])  ▪  (RefLink[Keys, paclet:ref/Keys])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Associations, paclet:guide/Associations])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/34-associations.html])(WebLink[: Associations, https://www.wolfram.com/language/elementary-introduction/34-associations.html])}})}})