remove api rewrite