I may be mistaken but it seems that construction «variable_del('fz152_*');» doesn't work for deleting multiple variables using wildcard.

It's better to use database query like the following:

db_delete('variable')
->condition('name', 'fz152_%','LIKE')
->execute();
cache_clear_all('variables', 'cache_bootstrap');

Comments

Alex Zu created an issue. See original summary.

  • Niklan committed a75d303 on 7.x-1.x authored by Alex Zu
    Issue #2880561 by Alex Zu: Deleting variables on uninstall
    
niklan’s picture

Status: Active » Fixed

Thank you for your contribution. The fix was applied.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.