Implements hook_file_move().
function image_file_move(File $file, File $source) { // Delete any image derivatives at the original image path. image_path_flush($source->uri); }