deleteNamespace
Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails.
Samples
fun main() {
//sampleStart
// Example Delete namespace
val resp = serviceDiscoveryClient.deleteNamespace {
id = "ns-ylexjili4cdxy3xm"
}
//sampleEnd
}
fun main() {
//sampleStart
// Deletes a namespace using a namespace ARN instead of namespace ID, useful when working with shared
// namespaces.
val resp = serviceDiscoveryClient.deleteNamespace {
id = "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678"
}
//sampleEnd
}