I suggest you to do this modification first,
Edit ServerConfig.xml and go to "LogConfig" node and leave it as this,
Code:
<LogConfig>
<Directories>
<Directory name="Logging" path=".\Logs\Logging" />
<Directory name="Logged" path=".\Logs\Logged" />
<Directory name="ChatLogging" path=".\Logs\ChatLogging" />
<Directory name="ChatLogged" path=".\Logs\ChatLogged" />
<Directory name="NHNChat" path=".\Logs\NHNChatLog" />
<Directory name="Console" path=".\Logs\" />
<Directory name="UserDump" path=".\Logs\UserDump" />
</Directories>
<DisabledChatType />
</LogConfig>
This will make that all logs will be placed at Logs folder and not in the root bin folder.
About the task,
Create a "CleanLogs.ps1" file with the following content,
Code:
Get-ChildItem -Path "D:\TERA_SERVER" -Recurse -Include *.log,*.log2 -Force | Remove-Item -Force
and create a batch file with the following content,
Code:
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'D:\TERA_SERVER\CleanLogs.ps1'"
Save it as CleanLogFile.bat (or what ever you want)
Then add it (CleanLogFile.bat) to your windows task