def METHOD_NAME(connection, module):
    name = module.params.get("name")
    changed = False
    try:
        cors = connection.delete_bucket_cors(Bucket=name)
        changed = True
    except (BotoCoreError, ClientError) as e:
        module.fail_json_aws(e, msg=f"Unable to delete CORS for bucket {name}")
    module.exit_json(changed=changed)