Skip to main content

Uninstalling

Here's how to remove the TFE agent safely. These steps cover both TFE Local Directory and TFE Object Storage, with the differences between them called out explicitly.

warning

Back up the encrypted data before you uninstall anything. See Backing Up Encrypted Data.


TFE Local Directory​

sudo ./uninstall.sh fte

The uninstaller stops the agent, releases protected folders, removes the agent program, then asks:

Remove config and metadata? [y/N]
Critical: Double-Encryption Risk

Don't answer "yes" if the protected folder still has data you need to keep.

Answer "yes" and the encryption record at /var/lib/takakrypt/fte/metadata/ gets deleted. Reinstall and start the agent afterward, and the auto-migrate feature treats already-encrypted files as new plaintext and encrypts them a second time. There is no recovering double-encrypted files, by any means.

Answer "no" and the encryption record stays put, so you can reinstall the agent safely later.

Only answer "yes" if one of these is true:

  1. The data genuinely isn't needed anymore, or
  2. It's already been properly backed up (see Upgrading), or
  3. Better yet, if all you're after is an upgrade, skip uninstall.sh entirely. Use install.sh directly, as described in Upgrading the Agent.

TFE Object Storage​

sudo ./deployment/uninstall.sh fos

The same prompt appears:

Remove config and metadata? [y/N]
Critical: Different Behavior from TFE Local Directory

With the local storage backend, answering "yes" deletes all files the agent stored locally. The general note that "your encrypted objects remain in the backend storage" does not apply to local, only to minio or s3, where files stay safe because they live outside the server.

TFE Object Storage doesn't re-encrypt on reinstall, so the double-encryption risk is unlikely here, but it hasn't been directly tested either. Back up (see Upgrading) before removing the agent, no matter which backend you're on.


Removing an Agent or a Protected Item from the Dashboard​

Deleting the agent (Agent > Config → three-dot icon → Remove → Yes, Delete) is permanent, and there's no undo. To stop protecting a single folder or bucket without deleting the whole agent, open the agent detail page, click Edit, select Disable on that folder or bucket, then click Save Changes (TFE Local Directory) or Update (TFE Object Storage).


For the configuration file reference, see Agent Configuration. Something not working as expected? Check Installation Troubleshooting.