// Deletes an Amazon WorkMail organization and all underlying AWS resources managed
// by Amazon WorkMail as part of the organization. You can choose whether to delete
// the associated directory. For more information, see Removing an organization
// (https://docs.aws.amazon.com/workmail/latest/adminguide/remove_organization.html)
// in the Amazon WorkMail Administrator Guide.
Deletes an Amazon WorkMail organization and all underlying AWS resources managed
by Amazon WorkMail as part of the organization. You can choose whether to delete
the associated directory. For more information, see Removing an organization

in the Amazon WorkMail Administrator Guide.
// Deletes an Amazon WorkMail organization and all underlying AWS resources managed // by Amazon WorkMail as part of the organization . You can choose whether to delete // the associated directory . For more information see Removing an organization // ( https : // docs . aws . amazon . com / workmail / latest / adminguide / remove_organization . html ) // in the Amazon WorkMail Administrator Guide .
func (c *Client) DeleteOrganization(ctx context.Context, params *DeleteOrganizationInput, optFns ...func(*Options)) (*DeleteOrganizationOutput, error) {
	if params == nil {
		params = &DeleteOrganizationInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteOrganization", params, optFns, addOperationDeleteOrganizationMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteOrganizationOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteOrganization ( ctx context . Context , params * DeleteOrganizationInput , optFns ... func ( * Options ) ) ( * DeleteOrganizationOutput , error ) { if params == nil { params = & DeleteOrganizationInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteOrganizationMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteOrganizationOutput ) out . ResultMetadata = metadata return out , nil }
Deletes an Amazon WorkMail organization and all underlying AWS resources managed
by Amazon WorkMail as part of the organization.
Deletes an Amazon WorkMail organization and all underlying AWS resources managed by Amazon WorkMail as part of the organization .