Skip to content

Deletes an origin request policy

Description

Deletes an origin request policy.

You cannot delete an origin request policy if it's attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy.

To delete an origin request policy, you must provide the policy's identifier and version. To get the identifier, you can use list_origin_request_policies or get_origin_request_policy.

Usage

cloudfront_delete_origin_request_policy(Id, IfMatch)

Arguments

Value

An empty list.

Request syntax

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