Looking to see if this is possible. Our SQL server(s) have numerous databases from our customers where we are doing tech support for them. Once the support issues is done (3 months after resolved), we want to automatically delete the database (not just drop, but delete the actual files as well to reclaim disk space).
Our databases are all named in a particular format that matches the customers incident number. So we should be able to query the list of support issues resolved and compare that to the databases names attached to the SQL instance(s).
I am new to powershell, just wondering if such a thing would be possible as a script that could be run on a weekly basis.
Thank you all.