deleteObject 
  inline suspend fun CloudDirectoryClient.deleteObject(crossinline block: DeleteObjectRequest.Builder.() -> Unit): DeleteObjectResponse
Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted. The maximum number of attributes that can be deleted during an object deletion is 30. For more information, see Amazon Cloud Directory Limits.
Samples
import aws.sdk.kotlin.services.clouddirectory.model.ObjectReference
fun main() { 
   //sampleStart 
   val resp = cloudDirectoryClient.deleteObject {
    directoryArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI"
    objectReference = ObjectReference {
        selector = "$AQHzK-KsptZGU78KjmnwGH6i8H-voMZDSNCqfx-fRUcBFg"
    }
} 
   //sampleEnd
}