Skip to content

Uninstalling FlightStack Agent | FlightStack

This guide covers how to completely remove the FlightStack agent and CLI from your system.

For a complete removal, run these commands in order:

Terminal window
# 1. Stop and remove the startup service
flightstack agent uninstall
# 2. Unregister the agent from FlightStack
flightstack agent unregister
# 3. Remove binaries
sudo rm /usr/local/bin/flightstack-agent
sudo rm /usr/local/bin/flightstack
# 4. Remove configuration and logs
rm -rf ~/.flightstack
  1. If the agent is currently running:

    Terminal window
    flightstack agent stop
  2. Remove the auto-start configuration:

    Terminal window
    flightstack agent uninstall

    This removes:

    • macOS: ~/Library/LaunchAgents/com.flightstack.agent.plist
    • Linux: ~/.config/systemd/user/flightstack-agent.service
    • Windows: FlightStackAgent scheduled task
  3. Remove the agent registration from FlightStack servers:

    Terminal window
    flightstack agent unregister
  4. Delete the executable files:

    Terminal window
    # Find where binaries are installed
    which flightstack-agent
    which flightstack
    # Remove them (common locations)
    sudo rm /usr/local/bin/flightstack-agent
    sudo rm /usr/local/bin/flightstack
    # If installed via Homebrew
    brew uninstall flightstack
  5. Delete all FlightStack configuration, credentials, and logs:

    Terminal window
    rm -rf ~/.flightstack
FileDescription
config.jsonAgent registration and token
config.<profile>.jsonProfile-specific agent configs
cli_config.jsonCLI authentication token
agent.logAgent output logs
agent.error.logAgent error logs
PlatformLocation
macOS~/Library/LaunchAgents/com.flightstack.agent.plist
Linux~/.config/systemd/user/flightstack-agent.service
WindowsScheduled Task: FlightStackAgent
BinaryCommon Locations
flightstack-agent/usr/local/bin/, ~/.local/bin/, or custom path
flightstack/usr/local/bin/, ~/.local/bin/, or custom path

If the standard uninstall doesn’t work, you can manually remove everything:

Terminal window
# Stop launchd service if running
launchctl stop com.flightstack.agent 2>/dev/null
launchctl unload ~/Library/LaunchAgents/com.flightstack.agent.plist 2>/dev/null
# Remove service file
rm -f ~/Library/LaunchAgents/com.flightstack.agent.plist
# Remove binaries
sudo rm -f /usr/local/bin/flightstack-agent
sudo rm -f /usr/local/bin/flightstack
# Remove all config and logs
rm -rf ~/.flightstack
# Remove any cached credentials (if using Keychain)
security delete-generic-password -s "flightstack" 2>/dev/null

After uninstalling, verify everything is removed:

Terminal window
# Check binaries are gone
which flightstack-agent # Should return nothing
which flightstack # Should return nothing
# Check config is gone
ls ~/.flightstack # Should say "No such file or directory"
# Check service is gone (macOS)
launchctl list | grep flightstack # Should return nothing
# Check service is gone (Linux)
systemctl --user status flightstack-agent # Should say "not found"

If you want to reinstall FlightStack later:

  1. Download the latest version from Installation Guide
  2. Run flightstack login to authenticate
  3. Run flightstack agent register to register your machine
  4. Run flightstack agent start to start the agent

If you’ve already removed the binaries, use manual cleanup steps above.

Delete it manually:

  1. Go to FlightStack web app
  2. Navigate to Build Agents
  3. Click on the agent
  4. Click Delete Agent
Terminal window
# Force stop and unload
launchctl stop com.flightstack.agent
launchctl unload ~/Library/LaunchAgents/com.flightstack.agent.plist
launchctl remove com.flightstack.agent

Run removal commands with elevated privileges:

Terminal window
sudo rm /usr/local/bin/flightstack-agent
sudo rm /usr/local/bin/flightstack