How Make one part from 2 parts WD hub?

How Make one part from 2 parts WD hub?
I made 2 parts.
One part “Z” is like second part “Y”.
How  delete “Y” part?

How did you accomplished this without erasing the OS on the hub?

Not aware of this feature on disk manager