Delete
[expr, i]Delete
[expr, {m, n, ...}]Delete
[expr, {{$m_1$, $n_1$, ...}, {$m_2$, $n_2$, ...}, ...}]Delete the element at position 3:
Delete[{a, b, c, d}, 3]
Delete at position 2 from the end:
Delete[{a, b, c, d}, -2]
Delete at positions 1 and 3:
Delete[{a, b, c, d}, {{1}, {3}}]
Delete in a 2D array:
Delete[{{a, b}, {c, d}}, {2, 1}]
Deleting the head of a whole expression gives a Sequence object:
Delete[{a, b, c}, 0]
Delete in an expression with any head:
Delete[f[a, b, c, d], 3]
Delete a head to splice in its arguments:
Delete[f[a, b, u + v, c], {3, 0}]
Delete[{a, b, c}, 0]
Delete without the position:
Delete[{a, b, c, d}]
Delete with many arguments:
Delete[{a, b, c, d}, 1, 2]
Delete the element out of range:
Delete[{a, b, c, d}, 5]
Delete the position not integer:
Delete[{a, b, c, d}, {1, n}]