Forum Discussion
Clean up: how to find & delete inactive workspaces?
- 5 years ago
Hi. I think the only way might be getting data of activity events from rest API. That data shows the activities of the whole tenant. It will depend on your definition of "inactive" in order to proceed. The usage metrics from the PBI service will show 30 days ago, the rest API will show 90 days ago and if you want more you can write a script to use the rest API in order to store the events data as historic.
Once you have that data you might be able to write a script checking the "inactivity". If 120 days without use is inactive for you, that would be the script rule to delete it. You can delete the group/workspace.
I hope that helps,
Hi. I think the only way might be getting data of activity events from rest API. That data shows the activities of the whole tenant. It will depend on your definition of "inactive" in order to proceed. The usage metrics from the PBI service will show 30 days ago, the rest API will show 90 days ago and if you want more you can write a script to use the rest API in order to store the events data as historic.
Once you have that data you might be able to write a script checking the "inactivity". If 120 days without use is inactive for you, that would be the script rule to delete it. You can delete the group/workspace.
I hope that helps,