<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Delete Registered Models with Versions in Dev Environment (MLOps + DAB) in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/98790#M2256</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123352"&gt;@Tapestry2508&lt;/a&gt;&amp;nbsp;please share your script for full bundle destroy. Maybe a github gist?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 11:45:46 GMT</pubDate>
    <dc:creator>emerrf</dc:creator>
    <dc:date>2024-11-14T11:45:46Z</dc:date>
    <item>
      <title>How to Delete Registered Models with Versions in Dev Environment (MLOps + DAB)</title>
      <link>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/92041#M2155</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a registered model deployed via DAB as part of our MLOps architecture. I'm looking to deploy this model, along with other resources (workflows, schemas, experiments, etc.), in our development environment, allowing team members to easily test and experiment with different approaches.&lt;/P&gt;&lt;P&gt;In our setup, development environment resources are deployed with a prefix that depends on the branch name. This allows multiple users to work on different branches simultaneously, with each branch deploying its own set of resources. When a branch is ready for merge, I run `databricks bundle destroy --target dev` to clean up the associated resources for that specific branch.&lt;/P&gt;&lt;P&gt;This works well, except when the registered model in the dev environment contains a model version. In such cases, I encounter the following error:&lt;/P&gt;&lt;P&gt;`Error: cannot delete registered model: Function model_name_here is not empty. The function has 1 model version(s).`&lt;/P&gt;&lt;P&gt;Is there a way to overcome this limitation and delete the registered model with its version(s) in the dev environment?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 14:57:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/92041#M2155</guid>
      <dc:creator>Tapestry2508</dc:creator>
      <dc:date>2024-09-27T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete Registered Models with Versions in Dev Environment (MLOps + DAB)</title>
      <link>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/93997#M2180</link>
      <description>&lt;P&gt;Following here&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 07:25:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/93997#M2180</guid>
      <dc:creator>kunalmishra9</dc:creator>
      <dc:date>2024-10-15T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete Registered Models with Versions in Dev Environment (MLOps + DAB)</title>
      <link>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/95383#M2211</link>
      <description>&lt;P&gt;I have also run into this issue. You can delete the model programmatically in a notebook (&lt;SPAN&gt;client.&lt;/SPAN&gt;&lt;SPAN&gt;delete_registered_model&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;model_name))&lt;/SPAN&gt; and then run the desired bundle command, but I would also really like a DAB native solution to this.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 21:48:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/95383#M2211</guid>
      <dc:creator>anpm</dc:creator>
      <dc:date>2024-10-21T21:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete Registered Models with Versions in Dev Environment (MLOps + DAB)</title>
      <link>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/95424#M2212</link>
      <description>&lt;P&gt;Definitely! It would be great if the 'databricks bundle destroy' command had a flag that allowed you to remove registered models as well&lt;BR /&gt;&lt;BR /&gt;I agree with you; the only solution I've found at the moment is to define a custom script for destroying the bundle, which first removes all model versions &lt;A href="https://mlflow.org/docs/latest/model-registry.html#deleting-mlflow-models" target="_self"&gt;through the Mlflow Python API&lt;/A&gt; and then runs 'databricks bundle destroy'.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:39:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/95424#M2212</guid>
      <dc:creator>Tapestry2508</dc:creator>
      <dc:date>2024-10-22T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete Registered Models with Versions in Dev Environment (MLOps + DAB)</title>
      <link>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/98790#M2256</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123352"&gt;@Tapestry2508&lt;/a&gt;&amp;nbsp;please share your script for full bundle destroy. Maybe a github gist?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 11:45:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/how-to-delete-registered-models-with-versions-in-dev-environment/m-p/98790#M2256</guid>
      <dc:creator>emerrf</dc:creator>
      <dc:date>2024-11-14T11:45:46Z</dc:date>
    </item>
  </channel>
</rss>

