check if log exist before try to delete it