Script to delete file

Hi everyone

I need a script that I can schedule to delete a backup file everyday.

I am using the ftp backup method described here : http://wiki.mikrotik.com/wiki/Automated_Backups

The problem is that I set a schedule to run this script everyday : tool user-manager database save name=today.backup
The first time it runs fine, but the second time there is already a file with that name, so it cannot run. Think the best way is to delete the original backup before running the script the second time so that there is no file with the name “today.backup”?

Does anyone know if this back, backups all my users and there passwords,usage stats,etc which is under myroutersip/userman?

Thanks in advance

Add this to the beginning of the script.

/file remove today.backup

or to remove all files

/file remove [find]

Thank you

It works!