how to flush custom author rewrite rule

Just use flush_rewrite_rules(); Documentation here.

tech