Linux
View all Worklets
LinuxLinux

Linux - Software Lifecycle - Uninstall AnyDesk

Remove AnyDesk remote access software and its repository files from Linux endpoints

Worklet Details

What the AnyDesk Uninstaller does

This Automox Worklet™ removes the AnyDesk remote desktop application from Linux endpoints. The Worklet identifies your distribution's package manager and uses the appropriate uninstallation command to remove AnyDesk completely.

Beyond package removal, the Worklet also locates and deletes AnyDesk repository configuration files. For apt-based systems, it searches /etc/apt/ for AnyDesk repository files. For yum-based systems, it searches /etc/yum.repos.d/. For zypper systems, it searches /etc/zypp/. Removing these files prevents AnyDesk from being reinstalled through package manager updates.

After uninstallation, the Worklet verifies that AnyDesk is no longer present on the system before reporting success.

Why remove AnyDesk from your endpoints

Remote access software like AnyDesk can create security risks when not managed centrally. Unauthorized installations may bypass your organization's access controls and audit logging. Attackers have also exploited remote access tools to maintain persistent access to compromised systems.

Organizations often need to standardize on a single remote support solution for compliance and management purposes. This Worklet helps you remove AnyDesk installations as part of a migration to a different tool or to enforce a policy prohibiting unauthorized remote access software.

By removing both the application and repository files, the Worklet provides thorough cleanup that prevents automatic reinstallation through package updates.

How AnyDesk removal works

  1. Evaluation phase: The Worklet detects the package manager (yum, apt, or zypper) and checks if AnyDesk is installed. For apt systems, it queries dpkg -l anydesk. For yum systems, it checks yum list installed. For zypper systems, it uses zypper info anydesk. If AnyDesk is found, the endpoint is flagged for remediation.

  2. Remediation phase: The Worklet executes the appropriate removal command: apt purge anydesk, yum remove anydesk, or zypper remove anydesk. It then searches for AnyDesk repository files and removes them. Finally, it verifies that AnyDesk is no longer installed before completing.

AnyDesk removal requirements

  • Linux endpoint with apt (Debian/Ubuntu), yum (RHEL/CentOS/Fedora), or zypper (SUSE) package manager

  • Root or sudo privileges for package removal and file deletion

  • Automox license required for this Worklet

Expected state after AnyDesk removal

After successful remediation, AnyDesk is completely removed from the endpoint. You can verify successful installation by checking the installed packages list or attempting to run the application. The package no longer appears in the system's package database, and AnyDesk repository files are deleted from the package manager's configuration directories.

Any existing AnyDesk remote sessions will be terminated, and the endpoint will no longer accept incoming AnyDesk connections. Users cannot reinstall AnyDesk through standard package manager commands until a new repository is manually configured.

How to validate uninstall anydesk changes

  1. Run this Worklet on a pilot Linux endpoint and review evaluation output for uninstall anydesk.

  2. Confirm Automox activity logs show successful completion and exit code 0.

  3. Verify endpoint state using checks aligned to evaluation script logic, such as function, elif, else.

  4. Validate remediation effects from script operations such as function, elif, else, then rerun evaluation for compliance.

For technical validation, compare endpoint state to the Worklet evaluation logic and remediation flow for uninstall anydesk. This supports repeatable software lifecycle workflows, faster change control review, and auditable compliance evidence.

Useful script references for this Worklet include evaluation operations such as function, elif, else and remediation operations such as function, elif, else. Use these indicators to verify that endpoint changes match intended policy outcomes.

View in app
evalutation image
remediation image

Consider Worklets your easy button

What's a Worklet?

A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

do more with worklets