im really not sure what your trying to do here.

if your talking about scan logs, why delete them? they are saved by time and date. hard to f that up.