Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function image_file_delete

Implements hook_file_delete().

File

modules/image/image.module, line 338

Code

function image_file_delete ($file) {
 // Delete any image derivatives of this image.
 image_path_flush ($file->uri );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.