async fn delete_domain(
        &self,
        input: DeleteDomainRequest,
    ) -> Result<(), RusotoError<DeleteDomainError>> {
        let mut request = self.new_signed_request("POST", "/");
        request.add_header("x-amz-target", "SageMaker.DeleteDomain");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));

        let response = self
            .sign_and_dispatch(request, DeleteDomainError::from_response)
            .await?;
        std::mem::drop(response);
        Ok(())
    }
<p>Used to delete a domain. If you onboarded with IAM mode, you will need to delete your domain to onboard again using SSO. Use with caution. All of the members of the domain will lose access to their EFS volume, including data, notebooks, and other artifacts. </p>
rusoto/services/sagemaker/src/generated.rs