When Webiny’s multi-tenancy feature is enabled, as part of the Website project application, Webiny deploys an additional Lambda@Edge function, which is used for additional multi-tenancy-related routing purposes.
This is because of an AWS limitation, which does not allow the immediate deletion of Lambda@Edge functions. Trying to immediately delete the function will result in an error, which is why Webiny does not attempt to delete it automatically.
Note that Lambda@Edge functions are always deployed into
us-east-1 region. Make sure it is selected in the AWS Console, or via the AWS CLI, before proceeding with the deletion.