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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
lee_a
Frequent Visitor

Cannot Delete Query/Parameter/Table

Hi, 

 

I have this query entry that I cannot delete. This query was originally belonged to a number of queries created when entering a local folder of files as a new source. The query was a parameter selecting which sample file to use for the sample transformations to apply to the rest of the files in the folder. After some changes to the model, the local folder of files is no longer where the data is and should be deleted however I cannot. It keeps saying it's being referenced by another query but I cannot figure out where this other query is. I've named the query in question as "DELETE ME". 

 

In the below image you can see the error message I get when trying to delete. I cannot find where this "Sample File Parameter2 (2)" is for the life of me. 

 

Delete Error MessageDelete Error Message

I've tried converting the query to a table or parameter. deleting all the M code etc. Nothing seems to work. 

 

Power Query CodingPower Query Coding

Per my query dependencies view, there's nothing this query is related to. 

 

No dependencies?No dependencies?

Please help. My sanity depends on it!!

 

21 REPLIES 21
Anonymous
Not applicable

Hi There,

 

I could fix it by rewrtting the merging i was doing. When you re-merge you basically unlink for good the query you want to delete. After that I could delete the query without having the annoying error message.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.