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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
braddo81
Helper II
Helper II

BIReportServer SQL Database purge

How can we purge data from the PowerBI SQL database?

i would like to clear out data from our Dev server, it is currently 33GB in size

6 REPLIES 6
d_gosbell
Super User
Super User

Based on that 1 table if you did a shrink the maxiumum space you could reclaim is the 9Mb of Unused space so it would not really be worth doing

yeah, so any issues with purging the data from this table?
and then free up the space


@braddo81 wrote:

yeah, so any issues with purging the data from this table?
and then free up the space


So if you are talking about truncating the table (eg deleting all the rows) yes there would be an issue.  Deleting anything directly from the database is not supported and is highly likely to cause issues. Your entire instance might stop working or all your reports might thow errors. You should only ever delete things from the UI or using the support API methods.

 

The extended content table stores the content for your pbix based reports and the data models are loaded in and out of RAM dynamically from there.  So if you delete anything from there you will almost certainly loose reports from the portal.

 

If you are just talking about performing a shrink operation at the database or table level there is not much danger in that although it is probably something you would want to do while the instance is not being actively used to minimize the impact. Although as I already mentioned you would only regain a maximum of 9Mb from shrinking that table.

ok thanks

so what in your opinion is the best method to reduce the size of the database moving forward?

d_gosbell
Super User
Super User

It depends on what you mean by purge. 

 

If you don't want any of the data the fastest way to clean it all out would be to drop the databases completely and then use the Report Server Configuration Manager to generate new emtpy ones.

 

If you want to keep some of the data then you would have to delete any reports you don't want from the portal then you could use SQL Server Management Studio (SSMS) to do a shrink operation on the databases to reclaim space. 

i want to keep all the reports, but i feel like i could purge

braddo81_0-1625612321946.png

is there any harm in this?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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