title: Cannot delete AWS Lambda@Edge replicas
body: <p>This question already exists <a href="https://forums.aws.amazon.com/thread.jspa?messageID=796018" rel="noreferrer">here</a> but I think it will have more impact on SO.   </p>
  
  <p>I created an <strong>AWS Lambda@Edge function</strong> in order to rewrite Cloudfront URLs before they reach the Origin.<br>
  AWS Lambda@Edge Function are automatically replicated through all regions when published, so I was not surprised to see this in every region:   </p>
  
  <p><a href="https://i.stack.imgur.com/RJu3J.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RJu3J.png" alt="enter image description here"></a></p>
  
  <p><strong>Here began the problems</strong>:<br>
  I deleted the Lambda@Edge because it was a test and I wanted to start a fresh new one, but the replicas weren't deleted at the same time.<br>
  It was no big deal at the time, I thought that I simply could create a new Lambda@Edge function.<br>
  But you can't because <strong>the Cloudfront trigger can only be used one function at a time</strong> (as the replicas use it, you cannot create a new one).<br>
  Moreover, <strong>the trigger cannot be deleted either</strong>.  </p>
  
  <p>So now I'm stuck with Lambda@Edge replicas everywhere that I cannot delete and I cannot create similar ones. </p>
  
  <hr>
  
  <p><strong>TL;DR</strong>  </p>
  
  <ul>
  <li>I created a Lambda@Edge with a CloudFront trigger  </li>
  <li>I deleted it to create a new (similar) one</li>
  <li>Now there is a replica still existing</li>
  <li>I can't delete the replica</li>
  <li>I can't create a new Lambda@Edge because the trigger is already "in use" by the replica (that I can't delete)</li>
  </ul>
  
  <p>I'd be grateful to get some help on this<br>
  François  </p>
  
  <hr>
  
  <p><strong>EDIT:</strong>  </p>
  
  <p>I definitely think it's a bug because in my replica's page, the link to the <strong>Master ARN</strong> responds with a 404.</p>