Hi @Visakh_Vijayan ,

Sorry for late response, I didn't notice your reply. So I prepared simple example. Here I installed whl file on a cluster using below command:

 

 

databricks libraries install --json `@libraries_to_install.json

 

 

szymon_dybczak_0-1726513092476.png

The content of libraries_to_install.json file looks following:

{
  "cluster_id": "your_cluster_id",
  "libraries": [
    {
      "whl": "/Workspace/Users/path_to_your_wheel/my_package-0.1-py2.py3-none-any.whl"
    }
  ]
}

 

 

 

As a result I have installed whl library on cluster:

szymon_dybczak_1-1726513269180.png

Now, to uninstall library I used below command:

 

 

 

databricks libraries uninstall --json `@libraries_to_uninstall.json

 

 

The content of libraries_to_uninstall.json is following:

 

 

{
  "cluster_id": "your_cluster_id",
  "libraries": [
    {
      "whl": "/Workspace/Users/path_to_your_wheel/my_package-0.1-py2.py3-none-any.whl"
    }
  ]
}

 

 

After cluster restarted, wheel library uninstalled successfully .

Edit: If you use powershell terminal use backtick to escape @ character `@libraries_to_uninstall.json

View solution in original post