Skip to content

/AWS1/CL_FNT=>DELETEFUNCTION()

About DeleteFunction

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.

Method Signature

IMPORTING

Required arguments:

IV_NAME TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The name of the function that you are deleting.

IV_IFMATCH TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

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