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.
1. Delete function
Section titled “1. Delete function”Console: Web Functions → wf-hello → Delete. Type confirm, then
Delete.

CLI:
aws lambda-web delete-web-function --function-name wf-hello --region us-east-12. Leftovers (CLI deploy only)
Section titled “2. Leftovers (CLI deploy only)”delete-web-function leaves the deploy role, S3 objects, and log groups.
S3 objects (keep the shared bucket)
Section titled “S3 objects (keep the shared bucket)”aws s3 rm s3://awscli-lambdaweb-123456789012-us-east-1-an/lambda-web/wf-hello/ --recursivedelete: s3://awscli-lambdaweb-123456789012-us-east-1-an/lambda-web/wf-hello/20261014T175526Z-acabc763.zipdelete: s3://awscli-lambdaweb-123456789012-us-east-1-an/lambda-web/wf-hello/20261014T110705Z-937789c5.zipReplace 123456789012 and the bucket suffix with yours (awscli-lambdaweb-…).
Delete objects only — not the bucket if shared.
CloudWatch log groups
Section titled “CloudWatch log groups”aws logs delete-log-group --log-group-name /aws/lambda/web/wf-hello --region us-east-1aws logs delete-log-group --log-group-name /aws/lambda/web/wf-hello.local --region us-east-1IAM role
Section titled “IAM role”Execution role for the CLI deploy (not a second function):
aws iam delete-role-policy --role-name awscli-lambdaweb-wf-hello --policy-name awscli-lambdaweb-logsaws iam delete-role --role-name awscli-lambdaweb-wf-hello3. Verify
Section titled “3. Verify”aws lambda-web list-web-functions --region us-east-1{ "functions": []}curl -i https://lvxhf915kxln3n60.fym.lambda-web.us-east-1.on.aws/HTTP/1.1 404 Not Foundcontent-type: text/htmllambda-web-request-id: AAO6RMBIF74TQAL5RBOQBKN3YElambda-web-error-type: Platform.InvalidEndpointcontent-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>aws iam get-role --role-name awscli-lambdaweb-wf-helloAn error occurred (NoSuchEntity) when calling the GetRole operation: The role with name awscli-lambdaweb-wf-hello cannot be found.