contract ExampleContract { uint256[] public myArray; function removeAt(uint256 index) public { delete myArray[index]; // sets the value at index to be zero // the following code is equivalent // myArray[index] = 0; // myArray.length does not change in either circumstance } }