Steps that you need to follow to enable VPC support are as follows:-
You need to specify one or more subnets in one single VPC and then a security group as part of your function configuration.
Now to disable the VPC support, all you need to do is to update the function configuration and then specify an empty list for the subnet and security group. You again can change these settings using the AWS APIs, CLI, or AWS Lambda Management Console.