If you need to remove X days old folders from a command line here is a short PowerShell command which will take care of it.
PowerShell -Command "& Get-ChildItem "%1" | Where-Object {$_.PSIsContainer -and $_.LastWriteTime -le [System.DateTime]::Now.AddDays(-%2)} | Remove-Item -Recurse -Force"
Just replace %1 with a base folder and %2 with number of days.