to delete .svn files and folders using Windows Batch Script you can use the following snippet. Sample Windows Batch Script Replace C:\Users\CodeSnippets.Fesslersoft.de\Documents\Visual Studio 2013\Projects\ConsoleApplication with your Solution’s Path.
To delete all unapproved comments in WordPress you can use the following snippet. Sample mySQL
To remove any post that is older than X days in WordPress you can use the query below. Sample mySQL
To use select statement in a delete statement using MSSQL you can use the snippet below. Sample MSSQL