The Remove method of a Decision Support Objects (DSO) collection removes an item from the collection. This method does not apply to CustomProperties collections.
colCollection.Remove(vntIndexKey)
Note All collections in the DSO object model are one-based. That is, the first item in the collection has an index of 1 and the last item has an index of Count.
Use the following code to remove the partition named “EastCoast” from the MDStores collection of partitions for a cube:
' Assume the existence of an object dsoCube
' of ClassType clsCube
' Remove using the key
dsoCube.MDStores.Remove "EastCoast"
' OR Remove using the Index
dsoCube.MDStores.Remove 2