George,
There isn't currently a direct way to programmatically delete or change groups within a TDMS file.
What you can do however, is convert between TDMS and TDM using the VIs found in the Data Storage palette and then perform whatever modifications you need using the TDM utilities.
Hope this helps,
Simon H
Application Engineer
National Instruments