Deleting a file(picture) from the file system using php

Pictures uploaded with php script and saved on a folder on the server,
while its url is saved in a database.A user can delete the database reference
to the file but how is the actual file deleted from the server by the user?