Trying to remove data from an array stored within a data storage

So i have this idea for storing structure block file names within data somewhere, so this is my first idea. Currently im doing some tests to see if its theorhetically possible, so im storing placeholder names within this data storage and im trying to remove one at random but so far im running into the issue of not being able to remove a specific index from the array. is it possible, without creating a function that runs through the entire array, 1 by 1, grabbing every index's data to then build a new array that is used with a /data merge command and some macro shenanigans. (not that im opposed to this i just dont want to destroy peoples fps when they play the map i have in the works, since this particular function would be used anytime a player needs to create a new structure. which is often.)
Continue to help post