Bulk Deletion in Dataverse: A Beginner's Guide
We recently encountered a challenge with Dataverse capacity on the client side. One way to overcome this issue is to buy additional capacity, but before doing that we looked at the capacity metrics in the Power Platform admin center. Our investigation revealed that several test environments were still storing data, unnecessarily occupying valuable space. There are many ways to address this issue which also includes purchasing additional capacity. For this case we're considering the removal of these test datasets. But how? In this article, we are going to explore the topic of bulk deletion.
But why bulk deletion?
Picture the task of manually screening through thousands of records to identify and eliminate test data - sounds like a tedious process, right? This is where the power of bulk deletion becomes highly valuable. This functionality enables you to efficiently remove large sets of data in a single action. Not only are you saving time from doing this, but it also helps you to have a healthy tenant.
How to bulk delete? - A step-by-step guide
Look for: Shows all resources in that environment. In my case, I have created a dummy table (Bulk_Deletes) with a few thousand records.
Use Saved View: Here you could specify a particular view that you have created for the table. For example - inactive records.
Query: In the query section, we could define our search criteria. In my case, I want to delete only certain types of records.
Preview Records: This button shows the preview of your query results that you might want to delete.
领英推荐
We can then give a name to the Bulk Deletion Job, and schedule it. This is a nice feature, as after every test deployment cycle we could run this job to clear the dataset. We could also send a notification to the Product owner to keep him updated.
Best Practices
A few things to keep in mind while you perform bulk deletion Jobs.
Common Pitfalls
Conclusion
As you can see, bulk deletion in Dataverse isn't that complex. I hope with this 101 guide, you are able to handle and manage your data in an efficient way.