code to delete files marked "todelete"