To delete a Lambda function
The following delete-function example deletes the Lambda function named my-function.
aws lambda delete-function \
--function-name my-function
This command produces no output.
For more information, see AWS Lambda Function Configuration in the AWS Lambda Developer Guide.