getConstants(); // Deletes all the created variables by this module. foreach ($constants as $constant_name => $constant_value) { // The database variables are named using the prefix 'DB_VAR'. if (strpos($constant_name, 'DB_VAR_') === 0) { variable_del($constant_value); } } }