To uninstall the OMS agent for Linux, you can make use of the --purge argument, which removes the agent and its configuration:
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh --purge