This one-liner will remove ALL rules from APF:
for i in $(cat /etc/apf/deny_hosts.rules |awk '!/#/'|awk '/[0-9]/'); do apf -u $i ; done