Skip to content

Instantly share code, notes, and snippets.

@douglascayers
Created May 24, 2023 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglascayers/ce2a8b8c29856585a9b2fcb5cfdbe24d to your computer and use it in GitHub Desktop.
Save douglascayers/ce2a8b8c29856585a9b2fcb5cfdbe24d to your computer and use it in GitHub Desktop.
Delete AWS SageMaker Experiments
# 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