Alternative
Amazon
Article
Writing
Art
AI
Angular
Photoshop
Premiere
Animal Crossing
Blog
Story
Android
Android Studio
Davinci Resolve
CSS
Clipchamp
ChatGPT
Crypto
DALL-E
Discord
Davinci Resolve
Davinci Resolve 18
Dream Studio
Express
Filmora
Flutter
PC Games
Git
GPT
GPT3
GPT4
GTA
GTA 6
Ghost Together
Ghost Together
HTML
iOS
iMovie
Illustrator
JavaScript
Mac
Mongo
Midjourney
Minecraft
Node.js
NBA 2k24
OSX
PHP
Palworld
Python
Playground AI
Roblox
React
Recipe (Cooking)
React Native
Semicolon.dev
Starfield PC Game
Snapchat
Steam
Stable Diffusion
SVG
Threads
Text To Image (AI)
VSCode
Vim
Web Development
Windows
WebGL
None Tutorials

    How To Uninstall Datadog

    To uninstall Datadog, you need to uninstall the agent you installed in a previous step. It's the agent setup command line command that you copied from official Datadog website just moments after signing up.

    Uninstalling Datadog and Datadog analytics data collected during your short use, are two separate processes. However, you can do both with just one command in Terminal.

    Let's get started, step by step instructions are provided below.

    Locate your OS below, and simply copy and paste the uninstallation code into your command prompt (cmd.exe or WSL's bash.exe on Windows or Terminal on mac OS.)

    Debian and Ubuntu

    Agent v6 and v7

    Agent v5

    sudo apt-get remove datadog-agent -y

    This command removes the Agent, but does not remove:

    • the datadog.yaml configuration file,
    • user-created files in the /etc/datadog-agent configuration folder,
    • user-created files in the /opt/datadog-agent folder,
    • the dd-agent user.

    If you also want to remove these elements, use this command instead:

    sudo apt-get remove --purge datadog-agent -y

    CentOS, RHEL, Fedora, and Amazon Linux

    Agent v6 and v7

    Agent v5

    sudo yum remove datadog-agent

    This command removes the Agent, but does not remove:

    • the datadog.yaml configuration file,
    • user-created files in the /etc/datadog-agent configuration folder,
    • user-created files in the /opt/datadog-agent folder,
    • the dd-agent user.

    If you also want to remove these elements and your Datadog log files, run this command after removing the Agent:

    sudo userdel dd-agent \
    && sudo rm -rf /opt/datadog-agent/ \
    && sudo rm -rf /etc/datadog-agent/ \
    && sudo rm -rf /var/log/datadog/

    openSUSE and SLES

    Agent v6 and v7

    Agent v5

    sudo zypper remove datadog-agent

    This command removes the Agent, but does not remove:

    • the datadog.yaml configuration file,
    • user-created files in the /etc/datadog-agent configuration folder,
    • user-created files in the /opt/datadog-agent folder,
    • the dd-agent user.

    If you also want to remove these elements and your Datadog log files, run this command after removing the Agent:

    sudo userdel dd-agent \
    && sudo rm -rf /opt/datadog-agent/ \
    && sudo rm -rf /etc/datadog-agent/ \
    && sudo rm -rf /var/log/datadog/

    macOS

    Agent v6 and v7

    Agent v5

    Single user installation

    To remove the Agent and all Agent configuration files:

    Stop and close the Datadog Agent with the bone icon in the tray.

    Drag the Datadog application from the application folder to the trash bin.

    Run the following commands:

    sudo rm -rf /opt/datadog-agent
    sudo rm -rf /usr/local/bin/datadog-agent
    sudo rm -rf 
  • /.datadog-agent/​ #to remove broken symlinks
  • launchctl remove com.datadoghq.agent sudo rm -rf /var/log/datadog

    Reboot your machine for the changes to take effect.

    System-wide LaunchDaemon installation

    To remove the Agent and all Agent configuration files:

    Drag the Datadog application from the application folder to the trash bin.

    To remove remaining files, run the following:

    sudo rm -rf /opt/datadog-agent
    sudo rm -rf /usr/local/bin/datadog-agent
    sudo rm -rf 
  • /.datadog-agent/​ #to remove broken symlinks
  • sudo launchctl disable system/com.datadoghq.agent && sudo launchctl bootout system/com.datadoghq.agent sudo rm /Library/LaunchDaemons/com.datadoghq.agent.plist sudo rm -rf /var/log/datadog

    Reboot your machine for the changes to take effect.

    Windows

    Agent v6 and v7

    Agent v5

    There are two different methods to uninstall the Agent on Windows. Both methods remove the Agent, but do not remove the C:\ProgramData\Datadog configuration folder on the host.

    • Go to Add or remove programs
    • Press CTRL and Esc or use the Windows key to run Windows Search.
    • Search for add and click Add or remove programs.
    • Search for Datadog Agent and click Uninstall.

    PowerShell

    Note: Enable WinRM to use the commands below.

    Use one of the following PowerShell commands to uninstall the Agent without rebooting:

    start-process msiexec -Wait -ArgumentList ('/log', 'C:\uninst.log', '/q', '/x', (Get-CimInstance -ClassName Win32_Product -Filter "Name='Datadog Agent'" -ComputerName .).IdentifyingNumber, 'REBOOT=ReallySuppress')

    Using /norestart:

    start-process msiexec -Wait -ArgumentList ('/log', 'C:\uninst.log', '/norestart', '/q', '/x', (Get-CimInstance -ClassName Win32_Product -Filter "Name='Datadog Agent'" -ComputerName .).IdentifyingNumber)

    (Help spread the word about this article)

    Hope this helped you to uninstall Datadog from your system.

    Write For Us
    Sign Up Now  -  It's Free!

    How To Uninstall Datadog

    Comments (2) New! (You can now post comments on articles!)

    (By posting a comment you are registering a Ghost Together account.)
    Register
    Register
    Post It
    DM Coming Soon
    f f