If you want to clear your Amazon CloudFront cache completely, you can use the Invalidation feature. Invalidation allows you to invalidate either all files in your distribution, or specific files. To invalidate a file, you create an invalidation request and specify the file's path. Amazon CloudFront then removes the file from its cache, regardless of when the file was originally added to the cache.
If you invalidate all files in your distribution, any files that are currently in the CloudFront cache are removed and replaced with the latest versions of your files. The next time a user requests one of your files, CloudFront retrieves it from your origin.
You can invalidate files using the CloudFront console, the AWS Command Line Interface, or the CloudFront API. For more information, see Invalidating Objects (Web Distributions Only).