# Clean up after calling Estimator

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fclean-up-after-calling-estimator%2F128847%3E%5C
**Category:** Amazon SageMaker\
**Created:** [December 2, 2024, 1:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fclean-up-after-calling-estimator%2F128847 "2024-12-02T13:29:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zilong](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zilong/32/36830_2.png) [@zilong](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fzilong)%5C
**Post date:** [December 2, 2024, 1:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fclean-up-after-calling-estimator%2F128847%2F1 "2024-12-02T13:29:17Z")

</div>

I am using the huggingface estimator to train my model and use managed spot instance. I notice that the checkpoints persist after starting the whole training process from scratch.

How do I manage this checkpoint data folder in the instance? Or more simply how can I remove the checkpoints when I restart the instance or do I delete the whole endpoint/instance where the model is trained and how do I do this?
