By default, Synology NAS drives do not offer any way to securely delete files. It is however possible to install a couple of tools to ensure that your files are securely removed from the drive. The first and easiest option is to install
shred but it has some limitations compared to
1 ipkg install coreutils
shred is accessible from the command line.
1 shred -u -z -n 10 file.ext
To install srm on Synology NAS, it is necessary to install the necessary compilation tools first. As with
shred above, this requires ipkg to be installed.
1 2 ipkg install gcc ipkg install make
Move to tmp folder and download srm source.
1 2 cd /volume1/@tmp wget http://downloads.sourceforge.net/project/srm/1.2.12/srm-1.2.12.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsrm%2F&ts=1392053570&use_mirror=netcologne
Untar file and move to the source folder.
1 2 tar -xvjf srm-1.2.12.tar.bz2 cd srm-1.2.12/
Configure, compile and install
srm so that it is accessible to all users.
1 2 3 ./configure make make install
Confirm that it is installed properly.
1 which srm
which will print
Then, in order to securely delete files, simply use
srm in place of