Serverless: how to remove one function

Question:

I am using serverless to deploy my API on AWS.

In serverless, it allows to deploy a single function:

But it doesn’t allow to remove a single function:

Is there any way to remove single function which won’t impact to other functions?

Answer:

@justin.m.chase suggested:

Simply remove the function in serverless.yml, then run full deploy

the function is removed (Lambda + API Gateway). Perfecto!

Leave a Reply