Seriously, why do you need this array? Working with instance variables in C2 is much easier than working with 2D arrays.
If you are sure that you need the array, consider doing this:
Create 1-dimentional array, set Global=No, add it to the same container with the sprite. Now each instance of sprite will have its own instance of array for values. Sprite+array in each pair will be logically linked together, you'll not need the ID variable. You can pick a sprite and its own array will be picked automatically, and vice versa.
This code will search all arrays for a number N and destroy sprites (and their arrays) if the number is found:
For each Array
Array For Each X Element
Array Current value = N -> Sprite destroy