<?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 uninstall libraries that are set to auto-install on all cluster - using REST API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-uninstall-libraries-that-are-set-to-auto-install-on-all/m-p/19226#M12867</link>
    <description>&lt;P&gt;&lt;B&gt;1)&amp;nbsp;Find the corresponding library definition from an existing cluster using "libraries/cluster-status?cluster_id=&amp;lt;cluster_id&amp;gt;".&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;$ curl -X GET 'https://cust-success.cloud.databricks.com/api/2.0/libraries/cluster-status?cluster_id=1226-232931-cuffs129' -H 'Content-Type: application/json' -H "Authorization: Bearer MY_TOKEN"
 
{"cluster_id":"1226-232931-cuffs129","library_statuses":[{"library":{"pypi":{"package":"pyhive"}},"status":"INSTALLED","is_library_for_all_clusters":true}]}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2)  &lt;B&gt;Use "libraries/uninstall-library-on-all-clusters" to uninstall library using definition found with step 1:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;$request_body=$(cat &amp;lt;&amp;lt;EOF
{
    "library": {
        "pypi": {
            "package": "pyhive"
            }
    }
}
EOF
)
  
$ curl -X POST 'https://cust-success.cloud.databricks.com/api/2.0/libraries/uninstall-library-on-all-clusters' -H 'Content-Type: application/json' -H "Authorization: Bearer MY_TOKEN" -d "$request_body"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;B&gt;﻿3) Verify the library status from UI. The running clusters would need to be restarted to uninstallation to take into effect.&lt;/B&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 17:43:20 GMT</pubDate>
    <dc:creator>brickster_2018</dc:creator>
    <dc:date>2021-06-25T17:43:20Z</dc:date>
    <item>
      <title>How to uninstall libraries that are set to auto-install on all cluster - using REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-uninstall-libraries-that-are-set-to-auto-install-on-all/m-p/19225#M12866</link>
      <description>&lt;P&gt;I have a bunch of libraries that I want to uninstall. All of them are marked as auto-install. &lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:41:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-uninstall-libraries-that-are-set-to-auto-install-on-all/m-p/19225#M12866</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-25T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to uninstall libraries that are set to auto-install on all cluster - using REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-uninstall-libraries-that-are-set-to-auto-install-on-all/m-p/19226#M12867</link>
      <description>&lt;P&gt;&lt;B&gt;1)&amp;nbsp;Find the corresponding library definition from an existing cluster using "libraries/cluster-status?cluster_id=&amp;lt;cluster_id&amp;gt;".&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;$ curl -X GET 'https://cust-success.cloud.databricks.com/api/2.0/libraries/cluster-status?cluster_id=1226-232931-cuffs129' -H 'Content-Type: application/json' -H "Authorization: Bearer MY_TOKEN"
 
{"cluster_id":"1226-232931-cuffs129","library_statuses":[{"library":{"pypi":{"package":"pyhive"}},"status":"INSTALLED","is_library_for_all_clusters":true}]}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2)  &lt;B&gt;Use "libraries/uninstall-library-on-all-clusters" to uninstall library using definition found with step 1:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;$request_body=$(cat &amp;lt;&amp;lt;EOF
{
    "library": {
        "pypi": {
            "package": "pyhive"
            }
    }
}
EOF
)
  
$ curl -X POST 'https://cust-success.cloud.databricks.com/api/2.0/libraries/uninstall-library-on-all-clusters' -H 'Content-Type: application/json' -H "Authorization: Bearer MY_TOKEN" -d "$request_body"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;B&gt;﻿3) Verify the library status from UI. The running clusters would need to be restarted to uninstallation to take into effect.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:43:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-uninstall-libraries-that-are-set-to-auto-install-on-all/m-p/19226#M12867</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-25T17:43:20Z</dc:date>
    </item>
  </channel>
</rss>

