({{, (RefLink[KeyDropFrom, paclet:ref/KeyDropFrom])[a,key]
changes the association a by dropping the element with the specified key.}, {, (RefLink[KeyDropFrom, paclet:ref/KeyDropFrom])[a,{(Subscript[key, 1]),(Subscript[key, 2]),…}]
drops the elements with keys (Subscript[key, i]).}})

OpenersNotesSection(Spacer1)Details

(RefLink[KeyDropFrom, paclet:ref/KeyDropFrom]) has attribute (RefLink[HoldFirst, paclet:ref/HoldFirst]).

(RefLink[KeyDropFrom, paclet:ref/KeyDropFrom]) effectively modifies the value of a in place.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Delete the entry with the specified key from an association:

assoc = <|a->1,b->2|>

KeyDropFrom[assoc,a]

Delete entries, given a list of keys:

assoc=<|a->1,b->2,c->3,d->4|>

KeyDropFrom[assoc,{a,d}]

OpenersExampleSection1(Spacer1)Scope  (1)

Drop an entry from a nested association:

x=<|a-><|b->1|>|>;

KeyDropFrom[x[a],b]

x

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Association, paclet:ref/Association])  ▪  (RefLink[AssociateTo, paclet:ref/AssociateTo])  ▪  (RefLink[KeyDrop, paclet:ref/KeyDrop])}})}})

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