Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Created August 24, 2017 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wesley-Lomax/e1b29f7953a5292421b989df8c0ca2a2 to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/e1b29f7953a5292421b989df8c0ca2a2 to your computer and use it in GitHub Desktop.
Delete Sitecore Log File Directory - Local Dev
gci C:\inetpub\wwwroot\RCN\Data\logs -Recurse -Filter *.txt | where{-not $_.PsIsContainer}| sort CreationTime -desc| select -Skip 0 | Remove-Item -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment