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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Hussienah
Regular Visitor

Remove Datasource form power bi desktop

Hi All,
Can you tell me how to remove adatatsource from power Bi Desktp I have an old datasource which was local in my machine for test purpose  now when I published my project and tried to make a schedule refresh it's give an error because of the local excel file datasource  I removed the table from my modele but it did not remove the datasource

can you tell me how to just remove the datasource form Power BI desktop

Thanks all

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Hussienah 

 

Please delete as shown below in Power Query Editor or press 'Delete' after selecting the table.

pranit828_0-1597862110008.png

And if on the PBI desktop, click the three eplipses next to the table name which you use to create a measure and select delete as below.

pranit828_1-1597862198443.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Hussienah 

 

Please delete as shown below in Power Query Editor or press 'Delete' after selecting the table.

pranit828_0-1597862110008.png

And if on the PBI desktop, click the three eplipses next to the table name which you use to create a measure and select delete as below.

pranit828_1-1597862198443.png

 

amitchandak
Super User
Super User

@Hussienah , refer

In first link scroll down check , wrong solution marked

https://community.powerbi.com/t5/Desktop/Remove-existing-DataSource/td-p/1666

https://superuser.com/questions/1553875/how-to-remove-a-data-source-from-power-bi-desktop

 

 

https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/deletedatasource

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.