function to delete a file

copy the code of file handling / delete file

click here to select all the code