New answers tagged auditing
In short, you can't in a supported method as the API requires a valid SPSite object. The supported way of getting around this is to move all sites to a new content database, then abandon the defunct content database.
This feature is not available with SharePoint Online. You might want to look into external tools.
Top 50 recent answers are included