Next: Customizing the URL Format for Files in CloudFront, Previous: Updating Existing Content with a CloudFront Distribution, Up: Adding Removing Replacing Content [Index]
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RemovingObjects.html
You can remove files from your origin that you no longer want to be included in your CloudFront distribution. However, CloudFront will continue to show viewers content from the edge cache until the files expire.
If you want to remove a file right away, you must do one of the following:
When you use versioning, different versions of a file have different names that you can use in your CloudFront distribution, to change which file is returned to viewers.