Skip to content

Teardown

Delete wf-hello when you finish. That removes the function, endpoints, and revisions.

Console Hello World only → step 1. If you ran aws lambda-web deploy, also do step 2.

Console: Web Functions → wf-hello → Delete. Type confirm, then Delete.

Delete function wf-hello dialog with confirm typed

CLI:

Terminal window
aws lambda-web delete-web-function --function-name wf-hello --region us-east-1

delete-web-function leaves the deploy role, S3 objects, and log groups.

Terminal window
aws s3 rm s3://awscli-lambdaweb-123456789012-us-east-1-an/lambda-web/wf-hello/ --recursive
delete: s3://awscli-lambdaweb-123456789012-us-east-1-an/lambda-web/wf-hello/20261014T175526Z-acabc763.zip
delete: s3://awscli-lambdaweb-123456789012-us-east-1-an/lambda-web/wf-hello/20261014T110705Z-937789c5.zip

Replace 123456789012 and the bucket suffix with yours (awscli-lambdaweb-…). Delete objects only — not the bucket if shared.

Terminal window
aws logs delete-log-group --log-group-name /aws/lambda/web/wf-hello --region us-east-1
Terminal window
aws logs delete-log-group --log-group-name /aws/lambda/web/wf-hello.local --region us-east-1

Execution role for the CLI deploy (not a second function):

Terminal window
aws iam delete-role-policy --role-name awscli-lambdaweb-wf-hello --policy-name awscli-lambdaweb-logs
Terminal window
aws iam delete-role --role-name awscli-lambdaweb-wf-hello
Terminal window
aws lambda-web list-web-functions --region us-east-1
{
"functions": []
}
Terminal window
curl -i https://lvxhf915kxln3n60.fym.lambda-web.us-east-1.on.aws/
HTTP/1.1 404 Not Found
content-type: text/html
lambda-web-request-id: AAO6RMBIF74TQAL5RBOQBKN3YE
lambda-web-error-type: Platform.InvalidEndpoint
content-length: 225
<!DOCTYPE html>
<html>
<head>
<title>HTTP Error 404</title>
</head>
<body>
<h1>404 Not Found</h1>
<p>The requested endpoint could not be found.</p>
<p>Request ID: AAO6RMBIF74TQAL5RBOQBKN3YE</p>
</body>
</html>
Terminal window
aws iam get-role --role-name awscli-lambdaweb-wf-hello
An error occurred (NoSuchEntity) when calling the GetRole operation: The role with name awscli-lambdaweb-wf-hello cannot be found.