KeyDrop
Details

- KeyDrop preserves the original order of elements.
- Any keyi that does not appear in assoc is ignored.
- KeyDrop can be applied not only to Association objects, but also to lists of rules.
- KeyDrop[keys][expr] is equivalent to KeyDrop[expr,keys].
Examples
Basic Examples (7)Summary of the most common use cases
Delete entry with the specified key from association:

https://wolfram.com/xid/0e7skx8c-md42i6

Delete entries, given a list of keys:

https://wolfram.com/xid/0e7skx8c-d5nzem

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

https://wolfram.com/xid/0e7skx8c-gack3o

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

https://wolfram.com/xid/0e7skx8c-b9bgp7

Delete entries from several lists:

https://wolfram.com/xid/0e7skx8c-jvrevh

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

https://wolfram.com/xid/0e7skx8c-giuscb

Use the operator form of KeyDrop:

https://wolfram.com/xid/0e7skx8c-836t6x

Wolfram Research (2014), KeyDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/KeyDrop.html.
Text
Wolfram Research (2014), KeyDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/KeyDrop.html.
Wolfram Research (2014), KeyDrop, Wolfram Language function, https://reference.wolfram.com/language/ref/KeyDrop.html.
CMS
Wolfram Language. 2014. "KeyDrop." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeyDrop.html.
Wolfram Language. 2014. "KeyDrop." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeyDrop.html.
APA
Wolfram Language. (2014). KeyDrop. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KeyDrop.html
Wolfram Language. (2014). KeyDrop. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KeyDrop.html
BibTeX
@misc{reference.wolfram_2025_keydrop, author="Wolfram Research", title="{KeyDrop}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/KeyDrop.html}", note=[Accessed: 15-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_keydrop, organization={Wolfram Research}, title={KeyDrop}, year={2014}, url={https://reference.wolfram.com/language/ref/KeyDrop.html}, note=[Accessed: 15-April-2025
]}