Delete File Script

Delete File script is used to delete an .txt,.rtf,.docx,.doc,.xlsx format file from server.

Demo :

Text   File Name :
 File Type


Example :

If you need to delete file from server in the above script click delete icon. Then immediately which script ask to you "Are you sure you want to delete this file" message. If you click yes button the file will be delete otherwise file will not delete from server.

Code :

Following code is use to delete to file if you need to copy and use to your website.

  if(file_exists("Path/".file_name) && (file_name!=''))

In the above example file_exists() function is used to check file available from server and unlink() function is used to delete an file from server and chmod() is used to give permission to file.

Free Download Script :

If you need to Delete File Script click and download from following link.