Master reset button.

File

includes/admin.inc, line 550

Code

function advagg_admin_master_reset() {
    cache_clear_all('*', 'cache_advagg', TRUE);
    cache_clear_all('*', 'cache_advagg_files_data', TRUE);
    cache_clear_all('*', 'cache_advagg_bundle_reuse', TRUE);
    db_query("TRUNCATE TABLE {advagg_files}");
    db_query("TRUNCATE TABLE {advagg_bundles}");
    module_invoke_all('advagg_master_reset');
    list($css_path, $js_path) = advagg_get_root_files_dir();
    file_scan_directory($css_path, '/.*/', array(
        'callback' => 'file_unmanaged_delete',
    ));
    file_scan_directory($js_path, '/.*/', array(
        'callback' => 'file_unmanaged_delete',
    ));
    drupal_set_message(t('Advanced CSS/JS Aggregation has been reset.'));
}