Swif can wipe Linux devices remotely in two ways:
Soft Wipe (also called Partial Wipe) removes user accounts and their data, but keeps the operating system and the device enrolled in Swif. Use it to offboard an employee, or reassign a device.
Full Wipe permanently erases the whole disk by destroying its encryption keys. The device can't start up afterwards. Use it for lost or stolen devices, or before you dispose of one.
For other MDM features by operating system, see Swif.ai MDM Major Features by OS.
Which wipe to use
Soft Wipe | Full Wipe | |
What's removed | User accounts and home directories | Everything on the encrypted disk |
Operating system | Kept | Can't start up. The device stops at a recovery prompt. |
Enrolled in Swif afterwards | Yes | No. To use the device again, reinstall Linux and enroll it again. |
Can be undone | No, but the device keeps working | No. The data can't be recovered. |
Requires | Nothing extra | LUKS disk encryption, and a verification code sent to your email |
Best for | Offboarding, or reassigning a device | Lost or stolen devices, or retiring a device |
Soft Wipe
What Soft Wipe does
Removes all user accounts except the Swif admin (
swifteam). All local user accounts, including users who are logged in, are deleted with their home directories.Clears the Swif admin home directory. Everything under
/home/swifteamis deleted, except system files such as.bashrc,.bash_profile, and.ssh.Resets the Swif admin password to a new, random value. If Swif already stores a password for the device, it's synced to the device; otherwise a new one is generated and stored. IT admins can see it in the Swif web console.
Rotates the encryption recovery key, if the disk uses LUKS encryption, and the Encryption Recovery Policy is assigned. Swif changes the LUKS passphrase, and stores the new recovery key in the dashboard. The old recovery key no longer unlocks the drive, so a former user can't read the disk, even with physical access.
Restarts the device. Since all user accounts were removed, the next user is asked to set up a new account.
The Swif admin after a Soft Wipe
The
swifteamadmin user is hidden. It doesn't appear on the login screen.Its password is random, and stored in the Swif dashboard, where only IT admins can see it.
The device stays enrolled in Swif. The Swif agent keeps running, and accepting commands.
For more details, see Swif Admin User Behavior on Managed Devices.
Send a Soft Wipe
In Swif, go to Devices, and select the Linux device.
Go to the Commands tab.
Click Soft Wipe (or Partial Wipe).
Confirm the action.
The command runs as soon as the device checks in. The device restarts once the wipe is complete.
Good to know
Key rotation needs the Encryption Recovery Policy. To rotate the LUKS recovery key, assign
LINUX_ENCRYPTION_RECOVERY_POLICYto the device before the wipe. Without it, the key isn't changed.Files outside
/homearen't removed. Soft Wipe only deletes home directories, and clears/home/swifteam. For other cleanup, use Live Terminal.Supported on all Linux distributions Swif supports: Debian-based (Ubuntu, Pop!_OS), RPM-based (Fedora, CentOS, RHEL), Arch-based (Arch Linux, Manjaro), and NixOS. On NixOS, Swif manages users through
nixos-rebuild, so the first build after installation may take longer.
Full Wipe
Full Wipe permanently erases a Linux device by destroying the encryption keys of its LUKS-encrypted disk. Without the keys, the data on the disk can't be decrypted by anyone, including Swif.
Full Wipe can't be undone. All data on the encrypted disk is lost, the device can't start up, and Swif's stored recovery key no longer works. Only use it when you no longer need anything on the device.
What Full Wipe does
Finds every LUKS-encrypted volume on the device, including whole-disk encryption, LVM on LUKS, and RAID setups.
Erases their encryption keys, and the encryption header, so the data can never be decrypted.
Locks and removes fscrypt-encrypted home folders, if the device uses fscrypt. Their keys are overwritten before they're deleted, so the folders can't be read again.
Marks the device's recovery key as wiped in Swif, so Swif doesn't create a new one.
When the device next restarts, it stops at a recovery prompt (initramfs), and the original passphrase and recovery key are rejected.
Requirements
LUKS encryption on the system disk. Full Wipe works by destroying LUKS keys. If only home folders are encrypted, with fscrypt, Full Wipe makes those folders unreadable, but doesn't erase the rest of the disk.
Swif agent 1.447.0 or later on the device.
Access to your admin email, to receive the verification code.
Disconnect encrypted external drives you want to keep. Full Wipe erases every LUKS volume it finds on the device, which can include an external drive that's plugged in.
Send a Full Wipe
In Swif, go to Devices, and select the Linux device.
Open the device's actions menu, and click Full Wipe.
Read the red warning, and click Confirm. It reminds you that the disk's encryption keys are destroyed permanently, and the device will need a clean reinstall.
Swif emails you a 6-digit verification code. Enter it, and submit.
Swif shows a confirmation message, and the command appears in the device's command history as Pending. It changes to Done once the device has run the wipe. If the device is offline, the wipe runs the next time it checks in.
Full Wipe always asks for a verification code, even if Admin Safeguard (Require 2FA for destructive actions) is turned off for your organization.
After a Full Wipe
The wipe takes full effect when the device restarts or powers off. Swif doesn't restart it for you. After that, it can't start Linux, and stops at a recovery prompt.
The data on the encrypted disk can't be recovered.
The Swif agent no longer runs, so the device stops reporting to Swif.
To use the device again, reinstall Linux, and enroll it in Swif again. Enrolling it again creates a new recovery key.
Troubleshooting
I didn't get the Full Wipe verification code
Check your spam folder, and that you're signed in to Swif with the right email. Codes expire, so if it's been a while, start the Full Wipe again to get a new code.
Full Wipe stays Pending
The device hasn't checked in yet. The wipe runs the next time it's online, and the Swif agent is running.
Soft Wipe didn't change the recovery key
The Encryption Recovery Policy wasn't assigned to the device before the wipe. Assign LINUX_ENCRYPTION_RECOVERY_POLICY, and send the Soft Wipe again.
I want to use a wiped device again
Reinstall Linux on the device, and enroll it in Swif again. Swif recognizes the device, clears its wiped status, and stores a new recovery key once encryption is set up.
Related resources