deleteDirectory
Deletes an Directory Service directory.
Before you call DeleteDirectory
, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the DeleteDirectory
operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.
Samples
fun main() {
//sampleStart
// The following example deletes a directory from your AWS account.
val resp = directoryClient.deleteDirectory {
directoryId = "d-92654abfed"
}
//sampleEnd
}