# Remove old files from folder

<span class="TextRun SCXO131227939 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO131227939 BCX0">Get-ChildItem –Path “C:\\inetpub\\logs\\LogFiles” –Recurse -file | Where-Object CreationTime –lt (Get-Date).AddDays(-30) | Remove-Item -force</span></span><span class="EOP SCXO131227939 BCX0"></span>