This should be 'error deleting app record'.  However, given that this is mostly duplicate logic it would be best to put it into a method.  A low-tech way to do this would be to create a helper method called 'modify_dns' or something like that with arguments for the cmd and then a boolean for whether or not it's an addition or deletion.