单项选择题

在shell脚本中如何移除array数组中索引为2的元素?()

A.del array[2]
B.unset array[2]
C.remove array[2]
D.rm array[2]