I am using the following code for deleting all subnets but am unable to and there are no errors also:
import boto3
ec2 = boto3.resource('ec2')
ec2client = ec2.meta.client
vpc = ec2.Vpc('vpc-01fca2f1bae08f4be')
for subnet in vpc.subnets.all():
subnet.terminate()
Can someone help me please?