teardown¶
- autogluon.cloud.teardown(*, backend: Literal['sagemaker'] | None = None, session: Session | None = None) None[source]¶
Delete the CloudFormation stack created by
bootstrap()and remove the config entry.For backends saved with
register()without astack_name, only the config entry is removed.The S3 bucket is not emptied for you, and CloudFormation can’t delete a non-empty bucket. Empty it first, e.g. with
aws s3 rm s3://<bucket> --recursive.- Parameters:
backend (BackendName | None, default = None) – Backend to tear down. If
None, tears down all configured backends and deletes the config file.session (boto3.Session | None, default = None) – Session used for AWS calls. If
None, uses the default boto3 credentials with each backend’s saved region.