Add logging for rm command