Delete an image style.
Drupal\image\Plugin\Core\Entity\ImageStyle $style: An image style array.
$replacement_style_name: (optional) When deleting a style, specify a replacement style name so that existing settings (if any) may be converted to a new style.
TRUE on success.
function image_style_delete($style, $replacement_style_name = '') {
$style
->delete();
// Let other modules update as necessary on save.
if ($replacement_style_name) {
$style
->set('name', $replacement_style_name);
}
module_invoke_all('image_style_delete', $style);
return TRUE;
}