Created
May 24, 2023 21:43
-
-
Save douglascayers/ce2a8b8c29856585a9b2fcb5cfdbe24d to your computer and use it in GitHub Desktop.
Delete AWS SageMaker Experiments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies | |
# - pip install sagemaker | |
# | |
# https://pypi.org/project/sagemaker/ | |
# https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-cleanup.html | |
from sagemaker.experiments.experiment import Experiment | |
# In SageMaker Studio: | |
# 1. Click "Experiments" | |
# 2. Copy the "Name" of the experiment to delete and paste below | |
experiment_name = "Canvas302946-aws-auto-ml-job" | |
exp = Experiment.load(experiment_name = experiment_name) | |
exp._delete_all(action = "--force") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment