Edit Shape/Path

Any help on how I can edit a shape? I can get path data, but I cannot figure out how to modify that data and then either update the current shape or create a new shape.

I have a shape (or a work path) that has a main shape and several subpaths of smaller shapes. I am trying to either remove those smaller shapes or if that isn’t possible, I would like to set the operation mode to “add”.