I'm trying to implement a function that deletes a empty group from Active directory. I found below code but I'm unable to translate
 Code:
objOU.Delete "Group", "cn=" & strGroupCN & "" 


to Kix. Thank you for your support.

Full VB Code:

 Code:
Sub DelGroup 
 
Dim objOU 
 
'WScript.Echo strOU 
'WScript.Echo strGroupCN 
Set objOU = GetObject(strOU) 
objOU.Delete "Group", "cn=" & strGroupCN & "" 
WScript.Echo strGroupName & " (CN=" & strGroupCN & ") has been deleted." 
 
Set ObjOU = Nothing 
strGroupCN = "" 
 
End Sub