I want to delete a specific image file in the folder web/img/users , i wrote this code :
$path = $this->get('kernel')->getRootDir() . '/../web/img/users';
unlink($path."".($employee->getImageName()));
but i have this error:
Warning: unlink(D:\wamp\www\QualiMaker\app/../web/img/users): Permission denied