Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
nioj2S
Frequent Visitor

Lakehouse tables still visible in SQL endpoint view - how do I remove them?

I had tables in my lakehouse which I right-clicked and deleted. However, they are still listed in the lakehouse when I look at the SQL analytics endpoint view, as well as when I do dataflow gen2 and they are visible in the list when connecting a lakehouse:

nioj2S_3-1742376061257.png

 


It doesn't seem to be issues with refreshing of the lakehouse, as they have been there for weeks since I deleted them.

 

Lakehouse view shows this:

nioj2S_0-1742375574151.png

... just a list of tables collected from source under "Tables" and under "Files" there is nothing. But when I look at it from the SQL analytics endpoint view, I can still see the old schema (FIRMA1) and table names that I have deleted:

nioj2S_1-1742375666236.png

 

When I click the table to show data it just loads for a while until I cancel:

nioj2S_2-1742375791123.png

 

Why are these ghost tables still there and how can I remove them completely?

14 REPLIES 14
v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

Thank you for the update.

If the support team provides a solution, please share it with the community. This will assist others facing similar challenges and benefit the broader community.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

We are following up to check whether you have raised the support ticket. If you have already done so, we kindly request you to share your feedback on the issue raised.
If a solution has been provided, we would appreciate it if you could share it with the community and mark it as the accepted solution. This will help others facing similar challenges and benefit the broader community.

Thank you.

 

Hi! Support ticket is raised, three people are working on it as it seems to be a very unusual bug. No solution as of today.

v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

Based on my understanding, the issue may be caused by external policies applied to the resource, resulting in a denial of permission to drop the table, as indicated in the attached screenshot:

vpnarojumsft_0-1743622276485.png

 

Kindly check with your Organisation Administrator or Tenant Administrator to verify if any external policies have been enforced on the resource.

If the issue persists, we recommend reaching out to the Microsoft Support Team through the link provided below. Raising a support ticket will allow you to receive personalised insights related to your account and possible resolutions:
Microsoft Fabric Support and Status | Microsoft Fabric

If you find the response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Thank you.

 

v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

Kindly contact your tenant administrator or Fabric administrator for further assistance in resolving the issue.

If the issue persists, we sincerely recommend reaching out to the Microsoft Support Team through the link provided below. Submitting a support ticket will allow you to receive personalized insights related to your account and potential resolutions:
Microsoft Fabric Support and Status | Microsoft Fabric

If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.

Thank you.

I have already contacted the Fabric admin and looked for role assignments, but we saw nothing obvious, as I am already a workspace admin. Please provide more information about what they Fabric admin should do and where in order to give me the correct permissions to delete these ghost tables.

v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

Being a Workspace Admin in Fabric does not automatically confer permissions to drop tables or schemas in the SQL Analytics endpoint.

To drop a table or schema, you must have CONTROL permissions on the table, schema, and database or be a member of the DB_OWNER role.

If the necessary permissions are not granted, a SQL administrator must explicitly assign them using the SQL GRANT CONTROL command or by adding the user to the DB_OWNER role. SQL Server permissions, including ALTER, DELETE, and CONTROL, are essential for modifying database objects.

If you continue to face restrictions despite these measures, kindly reach out to your tenant administrator or Fabric administrator for further assistance.

If you find our response helpful, please mark it as the accepted solution and provide kudos. Your feedback will assist other community members encountering similar queries.

Thank you.

Couldn't find anything clear in the Azure admin portal, so I accessed the lakehouse via Azure Data Studio, gave myself access to delete but still nothing. I have permission_name "ALTER", "CONTROL", "DELETE" etc. and when I run "CROP TABLE [FIRMA1].[BL_PROJECT]" I get the same error message, it does not exist or I don't have permission.

v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

Thank you for your update.

Before deleting a schema, it is essential to first remove any dependent objects within the schema. Failure to do so will result in the DROP SCHEMA command failing.

Based on the error message in the screenshot you have shared, it appears that you do not have the necessary permissions to delete the specific table (e.g., BL_PROJECT), which is a dependent object within the schema FIRMA1. If you do not have the required permissions to delete tables or schemas, kindly contact your administrator and request access. Additionally, please check with your administrator for any external policies that may be applied to the resource.

Once all policies have been reviewed and the required permissions have been granted, please re-run the queries and verify the results.

If you find our response helpful, we request you to mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.

Thank you.

I am a workspace admin, is that not enough?

v-pnaroju-msft
Community Support
Community Support

Hi nioj2S,

We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.

If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Hi @nioj2S,

We appreciate your inquiry through the Microsoft Fabric Community Forum.

 

The Lakehouse and the SQL Endpoint in Microsoft Fabric represent different ways of interacting with the same underlying data. Below is an explanation of their functionalities and steps to resolve your issue:

  1. Lakehouse View:
    • This provides a file-system-oriented perspective where data is organized into folders and files, such as Parquet and Delta Lake formats.
    • Actions performed in the Lakehouse View primarily affect the underlying data storage.
  2. SQL Endpoint:
    • This offers a SQL-based interface (using T-SQL) to query and manage data in the Lakehouse.
    • The SQL Endpoint maintains its own metadata catalog, which includes schemas, tables, and views, independent of the file system structure.

When you delete a table through the Lakehouse View, only the associated data files are removed. However, the schema associated with the table remains intact in the SQL Endpoint's metadata. This behavior is intentional, as it allows users to recreate tables or reuse schemas for other purposes.

  • Schemas in SQL are logical containers for database objects, such as tables, views, and stored procedures.
  • Even if a schema is empty (i.e., contains no objects), it still exists as a logical entity in the SQL Endpoint's metadata.
  • The Lakehouse View focuses on data files and does not provide an option to delete schemas, as it does not manage SQL metadata.

To remove the schema, you need to use T-SQL within the SQL Endpoint. Please follow the steps below:

  1. Open a query editor connected to your Lakehouse's SQL Endpoint.
  2. Execute the following T-SQL command to delete the schema:
    DROP SCHEMA SchemaName;
    Replace SchemaName with the actual name of the schema you wish to delete.
  3. If the schema contains any other objects (ex: views or stored procedures), the DROP SCHEMA command will fail. You must delete those objects first using appropriate T-SQL commands.

If you find the response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.

Thank you.

 

Hi Friends,

 

Any luck on this?

 

Thanks

Ramana

 

Hello!

It does not seem to work.

Trying to drop schema via SQL query in the SQL analytics endpoint:

nioj2S_0-1742911744055.png

 

Trying to drop table the same way:

nioj2S_4-1742911935519.png

 

 

Trying to drop schema via notebook using Spark SQL:

nioj2S_1-1742911794905.png

 

Trying to drop table via notebook using Spark SQL:

nioj2S_2-1742911854207.png

nioj2S_3-1742911885456.png

 

 

Helpful resources

Announcements
MarchFBCvideo - carousel

Fabric Monthly Update - March 2025

Check out the March 2025 Fabric update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

"); $(".slidesjs-pagination" ).prependTo(".pagination_sec"); $(".slidesjs-pagination" ).append("
"); $(".slidesjs-play.slidesjs-navigation").appendTo(".playpause_sec"); $(".slidesjs-stop.slidesjs-navigation").appendTo(".playpause_sec"); $(".slidesjs-pagination" ).append(""); $(".slidesjs-pagination" ).append(""); } catch(e){ } /* End: This code is added by iTalent as part of iTrack COMPL-455 */ $(".slidesjs-previous.slidesjs-navigation").attr('tabindex', '0'); $(".slidesjs-next.slidesjs-navigation").attr('tabindex', '0'); /* start: This code is added by iTalent as part of iTrack 1859082 */ $('.slidesjs-play.slidesjs-navigation').attr('id','playtitle'); $('.slidesjs-stop.slidesjs-navigation').attr('id','stoptitle'); $('.slidesjs-play.slidesjs-navigation').attr('role','tab'); $('.slidesjs-stop.slidesjs-navigation').attr('role','tab'); $('.slidesjs-play.slidesjs-navigation').attr('aria-describedby','tip1'); $('.slidesjs-stop.slidesjs-navigation').attr('aria-describedby','tip2'); /* End: This code is added by iTalent as part of iTrack 1859082 */ }); $(document).ready(function() { if($("#slides .item").length < 2 ) { /* Fixing Single Slide click issue (commented following code)*/ // $(".item").css("left","0px"); $(".item.slidesjs-slide").attr('style', 'left:0px !important'); $(".slidesjs-stop.slidesjs-navigation").trigger('click'); $(".slidesjs-previous").css("display", "none"); $(".slidesjs-next").css("display", "none"); } var items_length = $(".item.slidesjs-slide").length; $(".slidesjs-pagination-item > button").attr("aria-setsize",items_length); $(".slidesjs-next, .slidesjs-pagination-item button").attr("tabindex","-1"); $(".slidesjs-pagination-item button").attr("role", "tab"); $(".slidesjs-previous").attr("tabindex","-1"); $(".slidesjs-next").attr("aria-hidden","true"); $(".slidesjs-previous").attr("aria-hidden","true"); $(".slidesjs-next").attr("aria-label","Next"); $(".slidesjs-previous").attr("aria-label","Previous"); //$(".slidesjs-stop.slidesjs-navigation").attr("role","button"); //$(".slidesjs-play.slidesjs-navigation").attr("role","button"); $(".slidesjs-pagination").attr("role","tablist").attr("aria-busy","true"); $("li.slidesjs-pagination-item").attr("role","list"); $(".item.slidesjs-slide").attr("tabindex","-1"); $(".item.slidesjs-slide").attr("aria-label","item"); /*$(".slidesjs-stop.slidesjs-navigation").on('click', function() { var itemNumber = parseInt($('.slidesjs-pagination-item > a.active').attr('data-slidesjs-item')); $($('.item.slidesjs-slide')[itemNumber]).find('.c-call-to-action').attr('tabindex', '0'); });*/ $(".slidesjs-stop.slidesjs-navigation, .slidesjs-pagination-item > button").on('click keydown', function() { $.each($('.item.slidesjs-slide'),function(i,el){ $(el).find('.c-call-to-action').attr('tabindex', '-1'); }); var itemNumber = parseInt($('.slidesjs-pagination-item > button.active').attr('data-slidesjs-item')); $($('.item.slidesjs-slide')[itemNumber]).find('.c-call-to-action').attr('tabindex', '0'); }); $(".slidesjs-play.slidesjs-navigation").on('click', function() { $.each($('.item.slidesjs-slide'),function(i,el){ $(el).find('.c-call-to-action').attr('tabindex', '-1'); }); }); $(".slidesjs-pagination-item button").keyup(function(e){ var keyCode = e.keyCode || e.which; if (keyCode == 9) { e.preventDefault(); $(".slidesjs-stop.slidesjs-navigation").trigger('click').blur(); $("button.active").focus(); } }); $(".slidesjs-play").on("click",function (event) { if (event.handleObj.type === "click") { $(".slidesjs-stop").focus(); } else if(event.handleObj.type === "keydown"){ if (event.which === 13 && $(event.target).hasClass("slidesjs-play")) { $(".slidesjs-stop").focus(); } } }); $(".slidesjs-stop").on("click",function (event) { if (event.handleObj.type === "click") { $(".slidesjs-play").focus(); } else if(event.handleObj.type === "keydown"){ if (event.which === 13 && $(event.target).hasClass("slidesjs-stop")) { $(".slidesjs-play").focus(); } } }); $(".slidesjs-pagination-item").keydown(function(e){ switch (e.which){ case 37: //left arrow key $(".slidesjs-previous.slidesjs-navigation").trigger('click'); e.preventDefault(); break; case 39: //right arrow key $(".slidesjs-next.slidesjs-navigation").trigger('click'); e.preventDefault(); break; default: return; } $(".slidesjs-pagination-item button.active").focus(); }); }); // Start This code is added by iTalent as part of iTrack 1859082 $(document).ready(function(){ $("#tip1").attr("aria-hidden","true").addClass("hidden"); $("#tip2").attr("aria-hidden","true").addClass("hidden"); $(".slidesjs-stop.slidesjs-navigation, .slidesjs-play.slidesjs-navigation").attr('title', ''); $("a#playtitle").focus(function(){ $("#tip1").attr("aria-hidden","false").removeClass("hidden"); }); $("a#playtitle").mouseover(function(){ $("#tip1").attr("aria-hidden","false").removeClass("hidden"); }); $("a#playtitle").blur(function(){ $("#tip1").attr("aria-hidden","true").addClass("hidden"); }); $("a#playtitle").mouseleave(function(){ $("#tip1").attr("aria-hidden","true").addClass("hidden"); }); $("a#play").keydown(function(ev){ if (ev.which ==27) { $("#tip1").attr("aria-hidden","true").addClass("hidden"); ev.preventDefault(); return false; } }); $("a#stoptitle").focus(function(){ $("#tip2").attr("aria-hidden","false").removeClass("hidden"); }); $("a#stoptitle").mouseover(function(){ $("#tip2").attr("aria-hidden","false").removeClass("hidden"); }); $("a#stoptitle").blur(function(){ $("#tip2").attr("aria-hidden","true").addClass("hidden"); }); $("a#stoptitle").mouseleave(function(){ $("#tip2").attr("aria-hidden","true").addClass("hidden"); }); $("a#stoptitle").keydown(function(ev){ if (ev.which ==27) { $("#tip2").attr("aria-hidden","true").addClass("hidden"); ev.preventDefault(); return false; } }); }); // End This code is added by iTalent as part of iTrack 1859082