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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
domtrump
Helper II
Helper II

Move PBI Desktop to different drive

My C: drive is full so I'm moving whatever I can to 😧 drive. I uninstalled PBI Desktop from C and then reinstalled to D. When I uninstalled from C, it freed up a good chunk of space. When I reinstalled on D, it STILL gobbled up several GB (about 3) on C drive. 

 

1. What is the app still putting on C drive?

2. How do I get all traces of the app OFF C drive and on to D?

 

If I can't get the app to leave my C drive alone, I will probably need to get rid of the program, which I do not want to do.

 

Please advise. Thanks.

2 ACCEPTED SOLUTIONS
grazitti_sapna
Super User
Super User

Hi @domtrump,

 

Power BI writes a lot of working data and temp files under your Windows User Profile, which is always on C: drive.

You can move the temp folders to D drive but Even after moving TEMP, Power BI internal cache for model processing will always write some files under your User Profile (C drive). It's baked into how Windows handles per-user app data.

 

I suggest you can create a batch file to remove the Temp Files and folders to save space on C drive, Below is the code 

@echo off
echo Clearing ONLY Power BI Desktop cache...

REM Delete Power BI Desktop cache
rmdir /s /q "%LocalAppData%\Microsoft\Power BI Desktop"

REM Recreate empty folder (optional but recommended)
mkdir "%LocalAppData%\Microsoft\Power BI Desktop"

echo Power BI Desktop cache cleared and folder reset!
pause

 

 

  • Open Notepad

  • Paste the script above

  • Save as ➔ Clear_PowerBI_Cache.bat

  • Save as type: All Files (*.*)

You can schedule this batch file to run after certain time or at the time when you login into your system by 

 

  • Open Task Scheduler

  • Create new task

  • Trigger: Daily, at login, or every few hours

  • Action: Run Clear_PBI_Cache.bat

Please note 

  • This deletes cache, so Power BI Desktop will rebuild previews when opening datasets again (small delay).

  • It won't harm your actual .pbix files or work — only temporary data gets deleted.

  • If you have unsaved work open, save it first before running the script.

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

 

 

 

View solution in original post

Thanks for the info. Looks like that folder only has 46MB in it. Not sure what is taking up the rest of the 3 GB that got eaten up on my C drive. I will uninstall and use a different PC for Power BI dev. I appreciate your response and will keep this information for future reference.

View solution in original post

2 REPLIES 2
grazitti_sapna
Super User
Super User

Hi @domtrump,

 

Power BI writes a lot of working data and temp files under your Windows User Profile, which is always on C: drive.

You can move the temp folders to D drive but Even after moving TEMP, Power BI internal cache for model processing will always write some files under your User Profile (C drive). It's baked into how Windows handles per-user app data.

 

I suggest you can create a batch file to remove the Temp Files and folders to save space on C drive, Below is the code 

@echo off
echo Clearing ONLY Power BI Desktop cache...

REM Delete Power BI Desktop cache
rmdir /s /q "%LocalAppData%\Microsoft\Power BI Desktop"

REM Recreate empty folder (optional but recommended)
mkdir "%LocalAppData%\Microsoft\Power BI Desktop"

echo Power BI Desktop cache cleared and folder reset!
pause

 

 

  • Open Notepad

  • Paste the script above

  • Save as ➔ Clear_PowerBI_Cache.bat

  • Save as type: All Files (*.*)

You can schedule this batch file to run after certain time or at the time when you login into your system by 

 

  • Open Task Scheduler

  • Create new task

  • Trigger: Daily, at login, or every few hours

  • Action: Run Clear_PBI_Cache.bat

Please note 

  • This deletes cache, so Power BI Desktop will rebuild previews when opening datasets again (small delay).

  • It won't harm your actual .pbix files or work — only temporary data gets deleted.

  • If you have unsaved work open, save it first before running the script.

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

 

 

 

Thanks for the info. Looks like that folder only has 46MB in it. Not sure what is taking up the rest of the 3 GB that got eaten up on my C drive. I will uninstall and use a different PC for Power BI dev. I appreciate your response and will keep this information for future reference.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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