title: Flushing CloudFront's cache when S3 files are deleted
body: <p>I have set up S3 with CloudFront as my CDN. As you know, when you upload files to S3 bucket, they are pushed to all CloudFront's edge locations and cached for best performance.</p>
  
  <p>If I delete files from S3 they remain in CDN's cache and are still being served to the end-users. How to prevent this behavior? I want CloudFront to serve only the files that are actually available in the S3 storage.</p>
  
  <p>Thanks in advance.</p>