REFACTOR delete log