Seafile sophos antivirus - how to delete infected files?

Using seafile pro 7.1.1 on CentOS 8 and sophos-av sav-linux-9

My /opt/seafile/conf/seafile.conf

scan_command = /opt/sophos-av/bin/savscan
virus_code = 3
nonvirus_code = 0
scan_interval = 60
scan_size_limit = 40
scan_skip_ext = .png, .PNG, .jpg, .JPG, .jpeg, .JPEG, .mp3, .mp4, .wav, .avi, .rmvb, .mkv
threads = 4

I configured sophos-av:
/opt/sophos-av/bin/savconfig add AutomaticAction delete

Seafile send to the admin an email notification inicating the infected file, but doesn’t delete it.

How to delete or disinfect automatically an infected file?


There is no option to delete automatically.

The virus scanner only works on a temporary copy.