Is there a way to remove a specific part of a union?

Hello developers, I’d like to know if there’s a way to remove a specific piece of a union. (ex. Removing 1 cube out of a 3x3 cube)

Any help with this is massively appreciated,
Thanks, MBroNetwork.

No you can’t unless you separate the union, remove the part and then union the other parts again.

How expensive would this be in regards to performance?
(I remember there being an API that specifically does this stuff though.)

That will depend on the amount of parts that the script will have to work with.

Depends on how many parts of the same type I need to union together to lower lag. (Basically greedy meshing)

Unions damage performance anyway so be careful not to make too many.

Do they perform better than 100 or so individual parts?