Forum Discussion

sstipas's avatar
sstipas
Frequent Visitor
3 months ago
Solved

Can't Delete Item

 I cant delete a notebook



when I go to Lineage view those  items are  alone I deleted the lakehouse and the connection into notebook (I disconnect this workspace of azuredevops), impact across the workspace i get 0 dependencies 

 

I'm using some libraires like: 

from notebookutils import mssparkutils
from pyspark.sql import SparkSession
from pyspark.sql.types import StructType, StructField, StringType
from datetime import datetime
import pandas as pd
from pyspark.sql.functions import split, col, regexp_extract, hash, abs, when



  • Hi sstipas ,

     

    If you are still having the issue, I wanted to mention that I experienced something very similar this afternoon while deleting a Data Agent. Fabric showed an error message saying the item could not be deleted, but after refreshing the web page, the item had actually been deleted correctly.

     

    It seems that in some cases Fabric may show synchronization or metadata refresh issues in the UI.

    Besides that, I would try the following:

     

    1. Refresh the workspace and the Lineage view:Sometimes dependencies are not updated immediately after deleting the Lakehouse or removing notebook connections.

    2. Check if the notebook is referenced by any Pipeline, Dataflow, scheduled Job, Deployment Pipeline, or Git/DevOps integration.Even if the Lakehouse connection was removed, the notebook may still be linked from another Fabric item.

    3. Open the notebook and check the attached Lakehouse/environment: Make sure there is no default Lakehouse still configured in the notebook settings.

    4. Save the notebook after removing the connection: Open the notebook, detach the Lakehouse/environment, save the changes, close it, and then try deleting it again.

    5. Check workspace permissions: Make sure you have Admin or Member permissions and not only Contributor, especially if the item was created by another user or through deployment/Git.

    6. Review “Manage connections and gateways” or the workspace settings: Verify that there are no remaining connections associated with that notebook.

     

    The imported Python libraries should not normally block deletion. The error seems more related to internal Fabric metadata dependencies than to the code itself.

     

    If the problem continues after refreshing and validating that there are no references from pipelines, schedules, Git, or deployment pipelines, it may be worth opening a Microsoft support ticket, as there could be an orphan dependency remaining in the workspace metadata.

     

    If my comments helped solve your question, it would be great if you could like the two comments and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.

     

    Thanks a lot, I really appreciate it.

     

    AI was used to ensure clarity of wording

     

4 Replies

  • Hi sstipas ,

     

    If you are still having the issue, I wanted to mention that I experienced something very similar this afternoon while deleting a Data Agent. Fabric showed an error message saying the item could not be deleted, but after refreshing the web page, the item had actually been deleted correctly.

     

    It seems that in some cases Fabric may show synchronization or metadata refresh issues in the UI.

    Besides that, I would try the following:

     

    1. Refresh the workspace and the Lineage view:Sometimes dependencies are not updated immediately after deleting the Lakehouse or removing notebook connections.

    2. Check if the notebook is referenced by any Pipeline, Dataflow, scheduled Job, Deployment Pipeline, or Git/DevOps integration.Even if the Lakehouse connection was removed, the notebook may still be linked from another Fabric item.

    3. Open the notebook and check the attached Lakehouse/environment: Make sure there is no default Lakehouse still configured in the notebook settings.

    4. Save the notebook after removing the connection: Open the notebook, detach the Lakehouse/environment, save the changes, close it, and then try deleting it again.

    5. Check workspace permissions: Make sure you have Admin or Member permissions and not only Contributor, especially if the item was created by another user or through deployment/Git.

    6. Review “Manage connections and gateways” or the workspace settings: Verify that there are no remaining connections associated with that notebook.

     

    The imported Python libraries should not normally block deletion. The error seems more related to internal Fabric metadata dependencies than to the code itself.

     

    If the problem continues after refreshing and validating that there are no references from pipelines, schedules, Git, or deployment pipelines, it may be worth opening a Microsoft support ticket, as there could be an orphan dependency remaining in the workspace metadata.

     

    If my comments helped solve your question, it would be great if you could like the two comments and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.

     

    Thanks a lot, I really appreciate it.

     

    AI was used to ensure clarity of wording

     

  • hey sstipas hmm a weird issue indeed.

    I would agree with arabalca that the Python libraries you’re using do not block notebook deletion. This is likely caused by a stale Fabric metadata dependencies, usually related to Git / branched workspaces, not the notebook code itself.

    I can only suggest to check if the notebook has no default Lakehouse attached, is saved after detaching and then refresh the browser and workspace. If still blocked, open a Microsoft support ticket — this is typically an orphaned internal dependency.

     

    Hopefully this is helpful, appreciate if you can 'Kudos' and/or 'Accept as Solution' if this answered your query.

  • v-sgandrathi's avatar
    v-sgandrathi
    Community Support

    Hi sstipas,

     

    Thank you rizalard0684  and arabalca for your response to the query.

    we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

    Should you have any further questions, feel free to reach out.
    Thank you for being a part of the Microsoft Fabric Community Forum!

  • v-sgandrathi's avatar
    v-sgandrathi
    Community Support

    Hi sstipas,

     

    Following up to check whether you got a chance to review the suggestions given. If the issue still persists please let us know. Glad to help. 

     

    Thank you.