# How does one modify/reset a DatasetType definition in a repo?

**URL:** <https://www.rubin.community/t/how-does-one-modify-reset-a-datasettype-definition-in-a-repo/7658>\
**Category:** Commissioning\
**Tags:** butler, datasettype\
**Created:** [May 22, 2023, 5:49pm UTC](https://www.rubin.community/t/how-does-one-modify-reset-a-datasettype-definition-in-a-repo/7658 "2023-05-22T17:49:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwv](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mwv](https://www.rubin.community/u/mwv)\
**Post date:** [May 22, 2023, 5:49pm UTC](https://www.rubin.community/t/how-does-one-modify-reset-a-datasettype-definition-in-a-repo/7658/1 "2023-05-22T17:49:57Z")

</div>

Is it possible to get a DatasetType reset/cleared for a Butler repo?

The thing I most worry about messing up when running in our shared repo setup is incorrectly registering a DatasetType, because those are global to the repo. Maybe the mistake is a typo, or maybe it’s just that after some more work I realized the DatasetType needs additional dimensions. I have great confidence I will do this when developing metrics for DIA stuff.

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [May 22, 2023, 7:54pm UTC](https://www.rubin.community/t/how-does-one-modify-reset-a-datasettype-definition-in-a-repo/7658/2 "2023-05-22T19:54:39Z")

</div>

> [@mwv](#):
>
> Is it possible to get a DatasetType reset/cleared for a Butler repo?

`butler remove-dataset-type` is what you use. This only works if you haven’t stored any datasets already using the wrong definition.
