How to clear fmadm log or FMA faults log

reference: https://blogs.oracle.com/unixgeek/entry/how_to_clear_fmadm_log

Clear reports and resource cache:
cd /var/fm/fmd
rm e* f* c*/eft/* r*/*
Clearing out FMA files with no reboot needed:
# stop fmd service:
svcadm disable -s svc:/system/fmd:default
# go to log dir:
cd /var/fm/fmd
# looking/checking logs:
find /var/fm/fmd -type f -exec ls {} \;
#removing logs:
find /var/fm/fmd -type f -exec rm {} \;
# starting fmd:
svcadm enable svc:/system/fmd:default