The following applet sample (using the native GroupWise AddressBooks object) should do what you require:
Sub Main(Client, GWEvent) dim AdressBuecher dim AdressBuch set AdressBuecher = GroupWise.Account.AddressBooks set AdressBuch = AdressBuecher.Item("TTT") AdressBuch.Delete() End Sub
You may find that the Address Book application continues to show TTT – however it should be empty. When you restart Address Book/GroupWise, TTT should not be there.
Your original code uses the AddressBooks object which is ‘wrapped’ by Formativ, not the native GroupWise AddressBooks object. The wrapped object is provided in order to make it simpler to access fields. For more information, see the Formativ Language Guide, under GroupWise -> AddressBooks. I will add an entry to the Formativ enhancements database, to implement the wrapped AddressBook.Delete() method.
I hope this helps.