Add the delete a rule function
Catch and throw exceptions in move a rule function