Get-ChildItem truncates file paths when deleting old data. Causes issues when the base path of DNAQuery is longer that 35 characters. This might be dependent on the version of PowerShell?
Need to add a Select-Object filter instead which should work more reliably.