Cannot uninstall library from UI

Learn what to do when you can't uninstall a library using the Databricks user interface.

Written by Adam Pavlacka

Last published at: May 11th, 2022

Problem

Usually, libraries can be uninstalled in the Clusters UI. If the checkbox to select the library is disabled, then it’s not possible to uninstall the library from the UI.

Cause

If you create a library using REST API version 1.2 and if auto-attach is enabled, the library is installed on all clusters. In this scenario, the Clusters UI checkbox to select the library to uninstall is disabled.

Solution

Create a workspace library pointing to the DBFS location of the library that you are unable to uninstall.

Example: You can’t uninstall a JAR library that is available at this DBFS location:

dbfs:/Filestore/jars/custom_elastic_spark.jar
  1. Create a new workspace library pointing to the same DBFS location.
  2. In the library UI, select the checkbox to uninstall the library from individual clusters.
Was this article helpful?