serverless-models-plugin icon indicating copy to clipboard operation
serverless-models-plugin copied to clipboard

model removed from s-models.json is not delete in API Gateway

Open aliatsis opened this issue 9 years ago • 3 comments

My models in s-models.json are created and updated properly but removing a model does not delete it in API Gateway.

aliatsis avatar Jun 01 '16 06:06 aliatsis

I did not implement the remove functionality yet. This will be added later as it is not trivial to do that automatically. Currently I propose that you manually delete the model if you do not need it anymore.

HyperBrain avatar Jun 01 '16 08:06 HyperBrain

Don't automatically remove, it would make production systems very unstable.

mwawrusch avatar Aug 20 '16 22:08 mwawrusch

This will be automatically handled as soon as SLS 1.x support has been finished. Then CloudFormation will automatically remove stale models.

HyperBrain avatar Mar 23 '17 19:03 HyperBrain