API for delete rule