deleteGroup
inline suspend fun DirectoryServiceDataClient.deleteGroup(crossinline block: DeleteGroupRequest.Builder.() -> Unit): DeleteGroupResponse
Deletes a group.
Samples
fun main() {
//sampleStart
// The following command deletes the marketing group from the specified directory.
val resp = directoryServiceDataClient.deleteGroup {
clientToken = "550e8400-e29b-41d4-a716-446655440000"
directoryId = "d-12233abcde"
samAccountName = "marketing"
}
//sampleEnd
}