You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: CfnCrudOps.go
    path of file: ./repos/aws-doc-sdk-examples/go/example_code/cloudformation
    
    the code of the file until where you have to start completion: // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifi
    
func DeleteStack(sess *session.Session, name string) error {
	svc := cloudformation.New(sess)
	delInput := &cloudformation.DeleteStackInput{StackName: aws.String(name)}
	_, err := svc.DeleteStack(delInput)
	if err != nil {
		return err
	}

	// Wait until stack is created
	desInput := &cloudformation.DescribeStacksInput{StackName: aws.String(name)}
	return svc.WaitUntilStackDeleteComplete(desInput)
}