Answers.Body: <p>The <code>group_name</code> in &lt;=v4.6 was deceptive -- in some circumstances, it provided namespacing, but it in others it didn't, so the safe play has always been to use some kind of name-prefixing.</p>
  
  <p>If the setting names are prefixed, then do something like:</p>
  
  <pre><code>DELETE FROM civicrm_setting WHERE name LIKE "phonenumbervalidator_%"
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-10T21:44:23.030Z
Answers.LastActivityDate: 2016-10-10T21:44:23.030Z
Answers.UserDisplayName: Tim Otten
Body: <p>It's time to update the Phone Number Validator to support version 4.7.</p>
  
  <p>In the uninstall function, I tidily remove the settings that get added during install. This looks as follows:</p>
  
  <p>'DELETE FROM civicrm_setting WHERE group_name = "com.civifirst.phonenumbervalidator"'</p>
  
  <p>But the group_name field has been removed. How can we neatly remove settings entries in a way that supports 4.6 and 4.7?</p>
  
  <p>Thanks,</p>
  
  <p>John</p>
  
Tags: <extension>
Title: Extension Maintenance: Settings
ThreadText: # Extension Maintenance: Settings
  
  (Asked by: username_0 on 2016-10-09)
  
  It's time to update the Phone Number Validator to support version 4.7.
  
  In the uninstall function, I tidily remove the settings that get added during install. This looks as follows:
  
  'DELETE FROM civicrm\_setting WHERE group\_name = "com.civifirst.phonenumbervalidator"'
  
  But the group\_name field has been removed. How can we neatly remove settings entries in a way that supports 4.6 and 4.7?
  
  Thanks,
  
  John
  
  **Tags:** extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-10. Score: 1
  
  The group_name in <=v4.6 was deceptive -- in some circumstances, it provided namespacing, but it in others it didn't, so the safe play has always been to use some kind of name-prefixing.
  If the setting names are prefixed, then do something like:
  DELETE FROM civicrm_setting WHERE name LIKE "phonenumbervalidator_%"
  
  
  ---
  
  