First, uninstall Agent v7 from your system.
Then, if you followed the instructions to upgrade from v6 to v7, run the following Agent installation command to downgrade your Agent from version 7 to version 6:
DD_API_KEY="<DATADOG_API_KEY>" bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent6.sh)"
The command works on all supported versions of Amazon Linux, CentOS, Debian, Fedora, Red Hat, Ubuntu, and SUSE.
First, uninstall Agent v7 from your system.
Then, if you followed the instructions to upgrade from v6 to v7, run the Agent installation command with the environment variable DD_AGENT_MAJOR_VERSION=6
to downgrade your Agent from version 7 to version 6:
DD_AGENT_MAJOR_VERSION=6 DD_API_KEY="<DATADOG_API_KEY>" bash -c "$(curl -L https://install.datadoghq.com/scripts/install_mac_os.sh)"