Skip to content

Delete Key Group

cloudfront_delete_key_group R Documentation

Deletes a key group

Description

Deletes a key group.

You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove the key group from all cache behaviors, then delete the key group.

To delete a key group, you must provide the key group's identifier and version. To get these values, use list_key_groups followed by get_key_group or get_key_group_config.

Usage

cloudfront_delete_key_group(Id, IfMatch)

Arguments

Id

[required] The identifier of the key group that you are deleting. To get the identifier, use list_key_groups.

IfMatch

The version of the key group that you are deleting. The version is the key group's ETag value. To get the ETag, use get_key_group or get_key_group_config.

Value

An empty list.

Request syntax

svc$delete_key_group(
  Id = "string",
  IfMatch = "string"
)