file_delete_multiple(array $fids)
Deletes files.
Instead of directly deleting a file, it is strongly recommended to delete file usages instead. That will automatically mark the file as temporary and remove it during cleanup.
$fid: The file id.
\Drupal\file\FileUsage\FileUsageBase::delete()
function file_delete_multiple(array $fids) { entity_delete_multiple('file', $fids); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!file.inc/function/file_delete_multiple/8.1.x