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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors