I would advise caution when putting your cleanup task before the backup task, I have seen this result in the tape backup running between the time of cleanup and database...
Of course, in order to recover this way, you have to ensure that the recovery model of a database is set to FULL, and you are taking regular Transaction Log...