# Clean up after calling Estimator

**URL:** <https://discuss.huggingface.co/t/clean-up-after-calling-estimator/128847>\
**Category:** Amazon SageMaker\
**Created:** [December 2, 2024, 1:29pm UTC](https://discuss.huggingface.co/t/clean-up-after-calling-estimator/128847 "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](https://discuss.huggingface.co/u/zilong)\
**Post date:** [December 2, 2024, 1:29pm UTC](https://discuss.huggingface.co/t/clean-up-after-calling-estimator/128847/1 "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?
