---
title: "Discussion on \"Programmatically Removing & Updating Default Lakehouse Of A Fabric Notebook\" | Hashnode"
description: "Discussion on \"Programmatically Removing & Updating Default Lakehouse Of A Fabric Notebook\". Using NotebookUtils to update notebook properties"
url: "https://hashnode.com/posts/programmatically-removing-updating-default-lakehouse-of-a-fabric-notebook/66eca83749a02928188090ea"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Programmatically Removing & Updating Default Lakehouse Of A Fabric Notebook](https://fabric.guru/programmatically-removing-updating-default-lakehouse-of-a-fabric-notebook?utm_source=hashnode&utm_medium=feed)

Using NotebookUtils to update notebook properties

Sep 19, 2024 · 3 min read · fabric.guru  
Read the article

-   [#notebookutils](https://hashnode.com/tag/notebookutils)
-   [#microsoftfabric](https://hashnode.com/tag/microsoftfabric)
-   [#microsoft-fabric](https://hashnode.com/tag/microsoft-fabric)
-   [#lakehouse](https://hashnode.com/tag/lakehouse)

## Written by

[Sandeep Pawar](https://hashnode.com/@PawarBI)

@PawarBI

  
[View profile](https://hashnode.com/@PawarBI)

Building Data Analytics and Data Science solutions using Microsoft Fabric | Principal PM, Microsoft Fabric CAT

Principal Program Manager, Microsoft Fabric CAT helping users and organizations build scalable, insightful, secure solutions. Blogs, opinions are my own and do not represent my employer.

## Responses 1

Markdown supported · ⌘↵ to post

[Vibha Trehan](https://hashnode.com/@vibhaom)

[Nov 12, 2024](https://hashnode.com/posts/programmatically-removing-updating-default-lakehouse-of-a-fabric-notebook/66eca83749a02928188090ea/comment/6733aa20c0aa902c2204fe8c)

Thank you so much for your articles. I have been trying to acheive the same, but I found a strange thng when i experimented with this code. Even though the lakehouses get removed, the trace of is still there. Try observing "synapse\_widget" section of the JSON returned by notebookutils.notebook.getDefinition. I am not able to find documentation for all the elements of this JSOn - but synapse widget is listed all the lakehouses (even after the removeall lakehouses code)

[Sandeep Pawar](https://hashnode.com/@PawarBI)

[Nov 12, 2024](https://hashnode.com/posts/programmatically-removing-updating-default-lakehouse-of-a-fabric-notebook/66eca83749a02928188090ea/comment/6733aa20c0aa902c2204fe8c#reply-6733b3b71bde01a5398779ff)

Thanks Vibha, they must have updated the definitions. I will take a look again.
