how can delete image in php

how  can delete image in php


unlink() is a function used for file handling in php,
it will delete the file content.
example:
<?php

$files = "image/log.jpeg";

if (!unlink($files))

{

echo ("Error deleting $files");

}

else

{

echo ("Deleted $files");

}

?>