This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Delete

Delete[expr, n]
deletes the element at position n in expr. If n is negative, the position is counted from the end.
Delete[expr, {i, j, ...}]
deletes the part at position {i, j, ...}.
Delete[expr, {{i1, j1, ...}, {i2, j2, ...}, ...}]
deletes parts at several positions.
  • Deleting the head of a particular element in an expression is equivalent to applying FlattenAt to the expression at that point.  »
  • Deleting the head of a whole expression makes the head be Sequence.  »
  • Deleting a whole expression gives the result Sequence[].
Delete the element at position 3:
Delete at position 2 from the end:
Delete at positions 1 and 3:
Delete in a 2D array:
Delete the element at position 3:
In[1]:=
Click for copyable input
Out[1]=
 
Delete at position 2 from the end:
In[1]:=
Click for copyable input
Out[1]=
 
Delete at positions 1 and 3:
In[1]:=
Click for copyable input
Out[1]=
 
Delete in a 2D array:
In[1]:=
Click for copyable input
Out[1]=
Delete in an expression with any head:
Delete at any position in any expression:
Delete a head to splice in its arguments:
Deleting the head of a whole expression gives a Sequence object:
New in 2 | Last modified in 5