# How to rebuild toml files?

**URL:** <https://discourse.julialang.org/t/how-to-rebuild-toml-files/123523>\
**Category:** General Usage\
**Created:** [December 6, 2024, 4:02am UTC](https://discourse.julialang.org/t/how-to-rebuild-toml-files/123523 "2024-12-06T04:02:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [December 6, 2024, 8:33am UTC](https://discourse.julialang.org/t/how-to-rebuild-toml-files/123523/3 "2024-12-06T08:33:36Z")

</div>

I think it would very rarely be the best way to solve a problem but if you have to reset a `Project.toml` file, open it in an editor and remove everything after the first section. This keeps the identity of a package/project but removes all dependencies, etc.

To reset a `Manifest.toml` file, simply delete it and let Pkg regenerate it. This is a much more useful operation and frequently the best resolution if you have a merge conflict in the Manifest.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-rebuild-toml-files/123523)._
