variable_del wildcard when uninstalling a module I have lot of variables created in a module. Is there any wildcard when deleting variables using variable_del.

Ex1: variable_del($key . '_campaign_text_*');
Ex2: variable_del($key . '_campaign_text_%');


Will any of these workout?
You can try db_delete but handle with caution.

Example :

db_delete('variable')
-&gt;condition('name', '_campaign_text_%','LIKE')
-&gt;execute();
cache_clear_all('variables', 'cache_bootstrap');