<?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 Metastore deletion issues in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124001#M3580</link>
    <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with my metastore in North Europe.&lt;/P&gt;&lt;P&gt;All my workspaces got detached:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_0-1751622293898.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17985i567FAA9A6E7301F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_0-1751622293898.png" alt="mbanxp_0-1751622293898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I go to Databricks console, I can see the metastore in North Europe I created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_1-1751621952878.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17981iFEB43D3D40580525/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_1-1751621952878.png" alt="mbanxp_1-1751621952878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I select the metastore in North Europe, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_2-1751621985852.png" style="width: 161px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17982iD40921411710C0A6/image-dimensions/161x199?v=v2" width="161" height="199" role="button" title="mbanxp_2-1751621985852.png" alt="mbanxp_2-1751621985852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I want to create a new metastore in NorthEU I cannot do it because it says there is already one:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_3-1751622036461.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17983i6270216B2BF62EA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_3-1751622036461.png" alt="mbanxp_3-1751622036461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I solve the issue ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jul 2025 09:45:17 GMT</pubDate>
    <dc:creator>mbanxp</dc:creator>
    <dc:date>2025-07-04T09:45:17Z</dc:date>
    <item>
      <title>Metastore deletion issues</title>
      <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124001#M3580</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with my metastore in North Europe.&lt;/P&gt;&lt;P&gt;All my workspaces got detached:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_0-1751622293898.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17985i567FAA9A6E7301F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_0-1751622293898.png" alt="mbanxp_0-1751622293898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I go to Databricks console, I can see the metastore in North Europe I created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_1-1751621952878.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17981iFEB43D3D40580525/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_1-1751621952878.png" alt="mbanxp_1-1751621952878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I select the metastore in North Europe, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_2-1751621985852.png" style="width: 161px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17982iD40921411710C0A6/image-dimensions/161x199?v=v2" width="161" height="199" role="button" title="mbanxp_2-1751621985852.png" alt="mbanxp_2-1751621985852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I want to create a new metastore in NorthEU I cannot do it because it says there is already one:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_3-1751622036461.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17983i6270216B2BF62EA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_3-1751622036461.png" alt="mbanxp_3-1751622036461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I solve the issue ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 09:45:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124001#M3580</guid>
      <dc:creator>mbanxp</dc:creator>
      <dc:date>2025-07-04T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Metastore deletion issues</title>
      <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124003#M3581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/173725"&gt;@mbanxp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe there's some hiccup on UI side. Could you try to use REST API or databricks cli?&lt;BR /&gt;You can use following endpoint to list all metastores associated with your account:&lt;BR /&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.databricks.com/api/account/accountmetastores/list" target="_blank"&gt;Get all metastores associated with an account | Account Metastores API | REST API reference | Databricks on AWS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check if the metastore causing problem is still there, note its metastore_id and then execute following endpoint:&lt;BR /&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.databricks.com/api/account/accountmetastores/delete" target="_blank"&gt;Delete a metastore | Account Metastores API | REST API reference | Databricks on AWS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 09:49:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124003#M3581</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-04T09:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Metastore deletion issues</title>
      <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124336#M3595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I used CLI to get all metastores associated with the account and I got 2 metastores:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mbanxp_0-1751898874337.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18023iF3BFD1CCE8DD4639/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbanxp_0-1751898874337.png" alt="mbanxp_0-1751898874337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The metastore I want to delete is the first one, and when I tried to delete it by using the following command:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; databricks metastores delete &amp;lt;metastore_id&amp;gt;&lt;/P&gt;&lt;P&gt;I got the following error:&lt;/P&gt;&lt;P&gt;Error: ~\.databrickscfg does not contain workspace profiles; please create one by running 'databricks configure'&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 14:36:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124336#M3595</guid>
      <dc:creator>mbanxp</dc:creator>
      <dc:date>2025-07-07T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Metastore deletion issues</title>
      <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124346#M3597</link>
      <description>&lt;DIV class=""&gt;Delete the Metastore through API call. Don't do it if you are not ready to loose your UC!! You can:&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;open the terminal&lt;/LI&gt;&lt;LI&gt;&lt;A class="" href="https://docs.databricks.com/aws/en/dev-tools/cli/install" target="_blank" rel="noopener noreferrer"&gt;install&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;databricks cli&lt;/LI&gt;&lt;LI&gt;do next commands:&lt;OL class=""&gt;&lt;LI&gt;databricks auth login --host &lt;A class="" href="https://accounts.azuredatabricks.net/" target="_blank" rel="noopener noreferrer"&gt;https://accounts.azuredatabricks.net/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;provide id of your account&lt;/LI&gt;&lt;LI&gt;databricks account metastores list&lt;/LI&gt;&lt;LI&gt;get the id of the metastore ( we also can get it from the link at the page of metastore)&lt;/LI&gt;&lt;LI&gt;databricks account metastores get [metastoreid] -- to check if we found it&lt;/LI&gt;&lt;LI&gt;databricks account metastores delete [metastoreid]&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;if you are not able to do this, you can try to delete the metastore assignment first:&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;databricks account metastore-assignments get {workspaceid]&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;databricks account metastore-assignments delete {workspaceid]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/cli/install" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/dev-tools/cli/install&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 15:31:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124346#M3597</guid>
      <dc:creator>Milica-Panic</dc:creator>
      <dc:date>2025-07-07T15:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Metastore deletion issues</title>
      <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124358#M3598</link>
      <description>&lt;P&gt;I am also facing similar issue&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/173725"&gt;@mbanxp&lt;/a&gt;&amp;nbsp;. Will keep you posted if i am able to find RCA.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 19:14:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124358#M3598</guid>
      <dc:creator>sridharplv</dc:creator>
      <dc:date>2025-07-07T19:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Metastore deletion issues</title>
      <link>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124490#M3605</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I solved the issue by deleting all the asignments before deleting the metastore.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt; Access to Databricks CLI and authenticate &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt; List metastores&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; databricks account metastores list &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt; List wotrkspaces and check assignments&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; databricks account workspaces list&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; databricks account metastore-assignments get &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;workspace_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;4.&lt;/SPAN&gt;&lt;SPAN&gt; Delete assignments one by one&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; databricks account metastore-assignments delete &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;workspace_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;metastore_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;5.&lt;/SPAN&gt;&lt;SPAN&gt; Force deletion of metastore because it still had some catalogs, credentials and different artifacts.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; databricks account metastores delete &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;metastore_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; --force&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jul 2025 16:41:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/metastore-deletion-issues/m-p/124490#M3605</guid>
      <dc:creator>mbanxp</dc:creator>
      <dc:date>2025-07-08T16:41:33Z</dc:date>
    </item>
  </channel>
</rss>

