How can I empty the ufw log file

As @muclux correctly points out, system files are usually removable only with administrator privileges; e.g. sudo. This command will remove the file:

sudo rm /var/log/ufw.log

Verify:

ls /var/log