delete log with rule