how to delete all in array javascript code example Example: js delete all array items A.splice(0,A.length)