Securely deleting data
When you delete a file on a computer system you don't actually delete the data, just the index entry that tells the computer where to find it. Consequently, a determined data thief can easily recover sensitive material by looking through the data stored on a disk using easily obtainable tools.
Historically, you would be advised to 'secure erase' the data, often by overwriting multiple times with '0' or random data. Some modern file systems (for example our central file servers, the macOS file system and all SSDs irrespective of the file system in use) use a mechanism called 'copy on write' to store new data, so secure erase is not possible in the traditional sense. If you have data that needs to be securely destroyed then ShredOS (see below) can achieve this but only for entire devices. If you have to destroy individual files/folders then ask computing-help@oxcin.ox.ac.uk for advice on what can practically be done.
Note
If you have data from a third-party that demands data be securely erased by one of these legacy methods please see our technical statement below for what to advise them.
Hard disk erasure
If the device isn't whole disk encrypted then we recommend the use of ShredOS https://github.com/PartialVolume/shredos.x86_64 is an open-source bootable storage erasure tool which only works on AMD64/Intel CPU systems. It is available as a bootable disk image - you will need to copy this to a bootable USB device and then boot your computer from the USB device to be able to use it. We recommend the use of HMG IS5 enhanced as the erasure mechanism.
SSD erasure
As mentioned above, SSDs intentionally avoid overwriting existing 'deleted' data to ensure that the lifetime of the storage is maximised. There are two options available to ensure that an SSD can be securely erased when no longer required.
1) Use whole device encryption before writing any data. If the device has been encrypted using OS tools (e.g. FileVault or BitLocker) then securely erasing the content is as simple as 'forgetting' the passphrase used to unlock the device. Practically, reformatting with a new encryption passphrase and destroying any notes of the original encryption passphrase will achieve this. For laptops/desktop OS drives and iOS/Android devices, the OS provided decommissioning tools will do this for you.
- macOS (Apple Silicon based): System Settings > General > Transfer or Reset > Erase All Content and Settings
- iOS/iPadOS: Settings > General > Transfer or Reset iPhone (or *iPad), then tap Erase All Content and Settings and complete the approval process
- Android: See https://support.google.com/android/answer/6088915?hl=en-GB
- Windows:
- Make sure you have signed out of your Microsoft (or other) accounts.
- Open Settings > System > Recovery
- Click Reset PC and select Remove everything. Choose Cloud download or Local reinstall as appropriate and then click Change settings and toggle Clean data? to Yes.
- Confirm and Reset
2) ShredOS
Danger
This is a dangerous tool - use it only if you know what you are doing. Please contact computing-help@oxcin.ox.ac.uk for assistance with using this.
ShredOS https://github.com/PartialVolume/shredos.x86_64 is an open-source bootable storage erasure tool which only works on AMD64/Intel CPU systems. It can only operate on complete devices, so is not appropriate for removing individual files. It is available as a bootable disk image - you will need to copy this to a bootable USB device and then boot your computer from the USB device to be able to use it.
For SSD/NVMe devices use SANITIZE method described in the documentation/
If the device is not functional then please contact computing-help@oxcin.ox.ac.uk to arrange for the device to be securely recycled.
Technical details of OxCIN Central file stores
The OxCIN file stores, /vols/scratch, /home/fs0, /vols/Data (FMRIB) and /ohba (OHBA) are stored on the ZFS file system comprising many disk drives over which files are spread for redundancy. The file system encrypts data at rest[^1] This file system uses copy-on-write when writing data, so the use of tools like srm and shred are ineffectual as the randomised data is written to a different area on the storage.
If you are required to provide a report of deletion then you should use the command:
rm -rfv <folder/file name> > ~/<foldername>-deletion-report.txt
This will create the file ~/<foldername>-deletion-report.txt with one line for each file/folder removed.
In addition, /home/fs0, /vols/Data and /ohba file systems are backed up via a snapshot mechanism to a remote location, where multiple time points are retained (along with a smaller number of local snapshots). It is not possible to remove individual files from these backups, only the whole backup, which may not be possible if the sensitive data is stored on a space shared with other users of the system. If you have a particularly sensitive dataset with stringent deletion requirements then you are recommended to request a project specific folder that can then be removed along with it's backups immediately.
Backup retention policy
| Location | Hourly | Daily | Weekly | Monthly | Yearly |
|---|---|---|---|---|---|
/home/fs0 |
24 | 7 | 2 | 1 | N/A |
/vols/Data |
24 | 7 | 2 | 1 | N/A |
/ohba |
24 | 7 | 2 | 1 | N/A |
Any data removed from the file server will cycle out of the backups after two months.
Tape archives
If you have transferred any data onto our tape archive service, then you can request that we remove the index for the archives in question. As tapes are a write-once medium, we cannot remove individual files/folders/archive sessions from a tape without rewriting the whole tape. All tapes are at rest[^1] encrypted. Once the reference is removed, whilst the data is retrievable, this requires a time consuming full scan of the tape(s) involved so for most purposes can be considered as deleted. If this is absolutely required then please contact computing-help@oxcin.ox.ac.uk to request this stating the details in the archive .retrieve file(s) referencing this archive.
[^1] At rest means that when the device is powered off or removed then the data it contains is not readable without the encryption key. Whilst powered on with the key loaded there are no barriers to reading the data other then standard operating system access controls.