This URL may answer your question. Look to see if there
are alternatives to arrays.
Providing a link to a different site and saying to look there to see if there’s an answer doesn’t seem to me to be helpful. Maybe some discussion will help.
AFAIK, the only way to “delete” an array is by deallocating the memory over which the array is based. Otherwise the question doesn’t make much sense to me. If deallocation relates, then I don’t see what good it can do.
Perhaps the question refers to rows in a table with columns that may be processed as an array. Rows may have columns that are all blank or zero. If so, that row ought to be deleted.
If anything else is meant, the question should be clarified in discussion and an appropriate answer can be supplied.