Deletes a file and its database record.
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.
file_usage()->listUsage()
function file_delete($fid) {
return file_delete_multiple(array(
$fid,
));
}