The buttons for clearing the whole gallery should be on the Tools > Maintenance page but there seems to be a compatibility issue with newer versions of Piwigo in the way that those options are displayed so you may not see them on that page.
If you do not see the buttons after clicking the "Purge compiled templates" button to regenerate the page then you can add the following to the LocalFiles Editor personal plugin to make the buttons appear. (You would need to make sure the personal plugin and Delete Hit/Rate plugins are both active and click the "Purge compiled templates" button one time after modifying the personal plugin.)
This worked for me on version 16.1.0 to show the buttons and allow them to function. I think it should also work on 15.x versions but I can't test that.
add_event_handler('loc_begin_admin_page', 'personal_dphr_prefilter');
function personal_dphr_prefilter()
{
global $template;
$template->set_prefilter('maintenance', 'personal_dphr_insertbtns');
}
function personal_dphr_insertbtns($content){
$search = '<a href="{$U_MAINT_SEARCH}" class="{$maint_actions[\'search\'][\'icon\']} maintenance-action purge-search-history-button">{$maint_actions[\'search\'][\'label\']}</a>';
$replacement = '<a href="{$U_DELETEHIT}" class="icon-trash mouse maintenance-action purge-search-hits">{\'Purge all hits on all pictures gallery\'|@translate}</a>
<a href="{$U_DELETERATE}" class="icon-trash-1 maintenance-action purge-search-rates">{\'Purge all rate on all pictures gallery\'|@translate}</a>';
return str_replace($search, $search.$replacement, $content);
}