Removing Apps from QNAP when they fail from App Center

The easiest and the preferred method to remove applications in QNAP is using the App Center. Occasionally, you may run into problems if the App Center is not able to remove the application you want. This article talks about manually removing any package from QNAP when the preferred method fails.

Prerequsites

You will need SSH access to your QNAP box. The easiest way from a Windows machine is to use an application called Putty. You will also have to enable SSH access in your QNAP, which is done through Control Panel → Telnet / SSH.

Steps

  • Connect to your QNAP device via SSH
  • Change directory to the installation directory, which is usually set to /share/CACHEDEV1_DATA/.qpkg/. Note that you may have a different value for CACHEDEV1_DATA on your end.
  • You will see every package installed on QNAP in this folder. Assuming you want to remove Xeams, delete /share/CACHEDEV1_DATA/.qpkg/Xeams by writing the following command:
    rm -rf /share/CACHEDEV1_DATA/.qpkg/Xeams
  • Open /etc/config/qpkg.conf in any editor
  • Every installed application has its own section enclosed by a square bracket. Delete the entire section for the desired application. For example, remove the following lines for Xeams.
    [Xeams]
    Status = complete
    Name = Xeams
    Build = 20200115
    Display_Name = Xeams
    Version = 7.0
    Author = Synametrics
    QPKG_File = Xeams.qpkg
    Date = 2020-11-05
    Shell = /share/CACHEDEV1_DATA/.qpkg/Xeams/xeams.sh
    Install_Path = /share/CACHEDEV1_DATA/.qpkg/Xeams
    WebUI = /
    Web_Port = 5272
    RC_Number = 200
    Enable = TRUE
  • Save the file