Code: Select all
/tool fetch address="download.mikrotik.com" mode=https src-path="/routeros/$newVer/routeros-mipsbe-$newVer.npk" dst-path="/apdir"
The problem is the /apdir directory keeps filling with all old no more used routeros-mipsbe-xxxxxx.npk files (10MB each) , resulting in no more space left .
As I'm not expert in scripting, how can I modify script to delete old npk file when a new one has been downloaded ? (code example)