Please note that this is a case where an array is a bad choice for the container. Arrays are bad when you have to add to or delete from the middle of the array.
If there are N elements in the array and you need to delete the k'th element then you copy the remaining elements down one position and decrement the number of valid items in the array: