.. _remove-instance: Remove FindFace Instance ============================================== You can automatically remove FindFace along with the :ref:`data storages ` by using the :download:`findface_uninstall.sh <_scripts/findface_uninstall.sh>` script. The FindFace configuration files and data storages will be backed up if you request it. .. important:: Regarding directories with the FindFace :ref:`artifacts `, the script will back up and clean only ``/var/lib/findface-security/uploads`` and ``/var/lib/ffupload/`` (set by default). If you modified the artifacts' location, you will have to create a backup and purge them by yourself. See :ref:`backup-restore` for reference. Do the following: #. Download the :download:`findface_uninstall.sh <_scripts/findface_uninstall.sh>` script to some directory on a designated host (for example, to ``/home/username/``). #. From this directory, make the script executable.  .. code:: sudo chmod +x findface_uninstall.sh #. Run the script.  .. code:: sudo ./findface_uninstall.sh #. Answer **backup** to create a backup and then remove FindFace along with the data storages. Answer **all** to completely wipe out FindFace and the data storages without a backup. #. The script purges all content from the ``/var/lib/ffupload`` directory. However, the directory itself will remain in your file system. Remove ``/var/lib/ffupload`` manually by executing: .. code:: sudo rmdir /var/lib/ffupload .. important:: To recover FindFace from the backup, see :ref:`backup-restore`.