You delete it by not using it. Allocate the array using the maximum possible length, and use a variable that stores the length. Then use that length variable in all your code so it can support different sizes:
1 2 3 4 5 6 7 8 9 10 11
int array[25];
int array_length = 25;
int i;
// array length changes here
array_length = 10;
for(i = 0; i < array_length; i++)
{
do_something_with(array[i]);
}