Hi Sam,
Thanks. I did check out the documentation and tried to write the code I shared based on it, but I’m not sure it’s the right way.
I found exemple of how to list the assets, and to upload one, but I couldn’t find code exemple for deleting an asset.
I get a 500 (Internal Server Error) when I tried this code.
Best,
The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nThis distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.\nWe can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.\n<BR clear=\"all\">\nIf you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
assetId has to be passed in the URL parameters. It seems like you are passing it in the body. Please check out the following documentation for more information.