Removing elements from arrays
BPM does not provide any specific mechanism to remove an element from an array, so the approach that you should use is to copy the array into a new array, omitting those elements that you want to remove. If the element you want to remove is the first or last element in the array, this can be done with a single operation, copying all of the other elements. Otherwise, you could copy the element(s) before the one you wish to remove and then append the elements after it to the new array.
Copying elements can be done using the process described above to create an initialized array. Appending the remaining elements can be done using the procedure described above for joining two arrays.