# Cannot delete files by api

**URL:** <https://community.wandb.ai/t/cannot-delete-files-by-api/9150>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [March 6, 2025, 1:44pm UTC](https://community.wandb.ai/t/cannot-delete-files-by-api/9150 "2025-03-06T13:44:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![busbyjrj](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@busbyjrj](https://community.wandb.ai/u/busbyjrj)\
**Post date:** [March 6, 2025, 1:44pm UTC](https://community.wandb.ai/t/cannot-delete-files-by-api/9150/1 "2025-03-06T13:44:33Z")

</div>

Based on the sample code, I want to delete some of my checkpoints. However, an error occurred.

File c:\Users\XXXX\miniconda3\envs\py10\lib\site-packages\wandb\apis\public\files.py:204, in File.delete(self)  
203 if self.\_server\_accepts\_project\_id\_for\_delete\_file():  
 → 204 variable\_values[“projectId”] = self.run.\_project\_internal\_id  
205 project\_id\_variable\_fragment = “, $projectId: Int”

File c:\Users\XXXX\miniconda3\envs\py10\lib\site-packages\wandb\apis\attrs.py:51, in Attrs. **getattr** (self, name)  
50 else:  
—\> 51 raise AttributeError(f"{repr(self)!r} object has no attribute {name!r}")

AttributeError: ‘\<Run XXXX (finished)\>’ object has no attribute ‘\_project\_internal\_id’

During handling of the above exception, another exception occurred:

Can anyone help me? Thanks

---

<div class="post-metadata">

**Author:** ![hsannu](https://avatars.discourse-cdn.com/v4/letter/h/a183cd/32.png) [@hsannu](https://community.wandb.ai/u/hsannu)\
**Post date:** [May 1, 2025, 3:11am UTC](https://community.wandb.ai/t/cannot-delete-files-by-api/9150/2 "2025-05-01T03:11:28Z")

</div>

Yeah their entire api stuff is just broken for no reason. They probs discourage using it cos its extra requests to their servers. Weirdly using [wandb.ai](http://wandb.ai) website seems fine other than it being painfully slow. In the end I had to get my students to do it - apparently wandb’s python api uses some deprecated graphQL stuff that made it so you can only delete your data properly over the website? (although permanently deleting actual files seems impossible). Got very pissed off and the phd students ended up pushing me to use [mlop.ai](http://mlop.ai) which was free and seem a lot more respecting of my data. They got all my data off wandb’s servers using nothing but my api key, which was kinda insane. Will probably be using mlop for non llm stuff going forward considering it’s foss too [GitHub - mlop-ai/mlop: Next Generation Experimental Tracking for Machine Learning Operations](http://github.com/mlop-ai/mlop)

---

<div class="post-metadata">

**Author:** ![jerredchen](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jerredchen](https://community.wandb.ai/u/jerredchen)\
**Post date:** [August 27, 2025, 2:33pm UTC](https://community.wandb.ai/t/cannot-delete-files-by-api/9150/3 "2025-08-27T14:33:18Z")

</div>

I’m experiencing the exact same thing. Is there any update on this? This was working for me just a few months ago.
