v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14106607606.1 KB

Deletes a CloudFront function.

You cannot delete a function if it's associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function.

To delete a function, you must provide the function's name and version (ETag value). To get these values, you can use ListFunctions and DescribeFunction.

delete/2020-05-31/function/{Name}#If-Match

Path parameters

Namestring required

The name of the function that you are deleting.

Headers

If-Matchstring required

The current version (<code>ETag</code> value) of the function that you are deleting, which you can get using <code>DescribeFunction</code>.

Response

Success