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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jimstowe01
New Member

Programmatically clearing PowerBI desktop cache?

I have a number of Power BI users.  Their cache sizes grow to unmanageable sizes.  Company policy prevents me from (1) limiting the size of their cache folders or (2) convincing/forcing them to periodically clear their cache from within Power BI.

 

Is there any reason why I cannot safely remove files from the cache folder(s) that are older than X days (i.e. 2 days) using a powershell script?

 

c:\Users\username\appdata\local\Microsoft\Power Bi Desktop\LuciaCache

c:\Users\username\appdata\local\Microsoft\Power Bi Desktop\cache

1 REPLY 1
lbendlin
Super User
Super User

If you do that while they are using Power BI Desktop you may get an error that the file is in use or they may experience crashes in Power BI Desktop.

 

I'd say go for it and see what happens.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors