logging before trying to delete