KeyDropFrom

KeyDropFrom[a,key]
changes the association a by dropping the element with the specified key.

KeyDropFrom[a,{key1,key2,}]
drops the elements with keys .

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Delete the entry with the specified key from an association:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Delete entries, given a list of keys:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)