Documentation
2.7. Uninstalling SFTPPlus on Windows¶
Uninstalling SFTPPlus is a straightforward process, and it can be initiated using any of the following methods:
Using the Uninstall SFTPPlus link from the Windows Programs Menu.
Using the Programs and Features Windows feature in Control Panel.
From a command line, by running the uninstaller available in the SFTPPlus installation folder.
Regardless of the uninstallation method used, the following sub-directories in the installation directory will have to be manually removed once the process is completed:
configuration
log
2.7.1. Silently uninstalling SFTPPlus¶
In order to silently uninstall SFTPPlus, open a command line with full administrator access rights (Run As Administrator).
Then go to the installation path of SFTPPlus and run the uninstaller with the following parameters:
SFTPPlus-windows-x86-VERSION-uninstall.exe /S _?=Installation\Path
Where:
VERSION
- is the version of SFTPPlus running in your environment/S
- makes the uninstallation process silent_?
- defines the installation directory.
2.8. Uninstalling SFTPPlus on Linux and macOS¶
To uninstall SFTPPlus on Linux and macOS systems, you may use the bin/uninstall.sh script in the hierarchy of SFTPPlus files to uninstall it automatically. But you can also uninstall it manually, as documented further in this page.
2.8.1. Uninstalling automatically¶
Following examples assume paths typical for a default SFTPPlus installation.
On Linux:
/opt/sftpplus/bin/uninstall.sh
On macOS:
/Library/sftpplus/bin/uninstall.sh
2.8.2. Uninstalling manually¶
If you prefer to uninstall SFTPPlus manually, first make sure it is stopped. Then save its configuration and logs, if relevant.
The init-related SFTPPlus files are specific to the local operating system. Use the following exemplified commands as a guide. They assume your init-related SFTPPlus files are using the generic names suggested in the installation documentation.
On systemd-based Linux systems:
systemctl disable sftpplus-mft.service
rm /etc/systemd/system/sftpplus-mft.service
On Alpine Linux and other distributions using OpenRC:
rc-update del sftpplus-mft
rm /etc/init.d/sftpplus-mft
On SysV-based Linux systems such as Devuan Linux:
chkconfig --del sftpplus-mft
rm /etc/init/sftpplus-mft
On macOS:
launchctl unload /Library/LaunchDaemons/sftpplus.plist
rm /Library/LaunchDaemons/sftpplus.plist
To remove the SFTPPlus files in the installation path, first of all make sure you have backed up any SFTPPlus configuration and log files that might be useful later. The following commands remove all remaining SFTPPlus-related files from a typical installation path.
On Linux:
rm -rf /opt/sftpplus
On macOS:
rm -rf /Library/sftpplus
To finally remove SFTPPlus user and group,
assuming the sftpplus
user and group were added for running SFTPPlus,
the following commands would be relevant.
On Linux:
userdel sftpplus
Note
On Alpine Linux, the shadow package might not be installed. In that case, use:
deluser sftpplus
On macOS:
dscl . delete /Users/sftpplus
dscl . delete /Groups/sftpplus