web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Free up storage space: Table "UserQueryBase"

(0) ShareShare
ReportReport
Posted on by 120

Hello,

I am currently working on reducing our storage capacity and one of our top 10 storage cause tables is the "UserQueryBase".

This currently occupies ~8 GB in our production environment. 

Does anyone have experience with this table and can answer the following:

  1. when is this table filled? 
  2. how can this table be reduced?

Many thanks in advance!

I have the same question (0)
  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at
    RE: Free up storage space: Table "UserQueryBase"

    Hi,

    Please check below link about "User Query Base".

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/userquery?view=dataverse-latest

    1. when is this table filled? 
    Answer- It store the personal views owned by CRM user. 

    2. how can this table be reduced?
    Answer:- You can Bulk Delete Tool of XRMtoolbox with below query
    pastedimage1674115737073v1.png

    Below I have used
    pastedimage1674115841520v2.png

  • MichaelFo96 Profile Picture
    120 on at
    RE: Free up storage space: Table "UserQueryBase"

    Hello!

    Thank you for your fast answer.

    I would like to try it out in our test instance and loaded the bulk delete tool. I tried to write down the code like you but it doesnt look like on your end. What did I do wrong here?:

    pastedimage1674117249531v1.png

  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at
    RE: Free up storage space: Table "UserQueryBase"

    Click on Validate Query after that it will show Record Count in below highlighted part then click on Delete Records:

    pastedimage1674117493909v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 105

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 81 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans