Hello,
Working on cleaning up a large number of inactive SharePoint site pages, and I just realized that deleting the page itself does not remove the related folder/files in the Site Assets library. So users that have deleted pages for the past years still leave a folder with data in our Site Assets library tied to that deleted page.
For those of you who have handled page cleanup at scale, what process are you using to make sure the related Site Assets content is removed as well?
Right now, I am manually going back into Site Assets and deleting the associated folders/files, but that is not ideal when dealing with hundreds of pages.
I was thinking about possibly using a Power Automate flow for future, that triggers after a page is deleted and then removes the matching Site Assets folder, but I am not sure if that is the best approach.
Has anyone built a cleanup process for this, or do you have a better recommended method?
Thanks for any feedback.