

Delete
Details

- 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 works on SparseArray objects.
- Delete works on associations, deleting elements with the specified keys.
- Delete[pos][expr] is equivalent to Delete[expr,pos].
Examples
open all close allBasic Examples (5)
Generalizations & Extensions (3)
Properties & Relations (2)
Deleting the head of a whole expression gives a Sequence object:
Deleting at an empty list of positions does not change the expression:
Related Links
History
Introduced in 1991 (2.0) | Updated in 2003 (5.0) ▪ 2014 (10.0)
Text
Wolfram Research (1991), Delete, Wolfram Language function, https://reference.wolfram.com/language/ref/Delete.html (updated 2014).
CMS
Wolfram Language. 1991. "Delete." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Delete.html.
APA
Wolfram Language. (1991). Delete. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Delete.html
BibTeX
@misc{reference.wolfram_2025_delete, author="Wolfram Research", title="{Delete}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Delete.html}", note=[Accessed: 06-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_delete, organization={Wolfram Research}, title={Delete}, year={2014}, url={https://reference.wolfram.com/language/ref/Delete.html}, note=[Accessed: 06-August-2025]}