Long island web design, hosting company
Home About Us Support Products Services Portfolio Contact Us Home

ASP > Deleting Files via File System Object

Created On: 11/24/2004 9:57:00 AM

Following active server pages code delete a file. Example uses FileSystem object to delete the file.  Do not forget to double check permissions for this operation.
 
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile(YOUR_FILE)