This type of "grease" is intentionally sticky.
It's used in many optics applications, where there is a focusable element, for avoid that vibrations and occasional touchs may vary the position of the lens holder, changing the focus.
You can freely take it away, but more you take it away, more the focusing assembly may become "wobbling" and unstable.