I understand you want to remove a layer on your lambda function, please run this command on your aws CLI "aws lambda delete-layer-version --layer-name my-layer --version-number 1" Note when you delete a layer version, you can no longer configure a Lambda function to use it. However, any function that already uses the version continues to have access to it.
Hope this helps.
What you can do is create a ZIP file with only one file in it - the one containing your code. Update the Lambda function with that ZIP file as you have previously been doing. Then your file will show up in the Lambda console code editor.
change lambda to no longer use zip deployment packageasked 3 months ago
Is there a way to recover the deleted lambda function?asked 3 months ago
Delete a specific file within a Lambda function when cannot use Console Code Editorasked 4 months ago
I created a layer and it did work.asked 3 months ago
Lambda Upload a .zip File not workingasked 5 months ago
How to used trp.trp2 package use inside AWS lambda as layer ?asked 13 days ago
Easiest way to replicate a lambda?asked 6 months ago
Using python-magic in a lambdaasked 2 months ago
Code Storage - Does it reuse a deployment package?Accepted Answerasked 3 years ago
Error when trying to import package installed using lambda layer on nodejs14 ES module enabled lambda functionasked 8 months ago