For a guide to the choosing ASP or PHP, click here
Home >> Text Files >> Delete a Text File This code shows how to easily delete a file, normally you should always check to make sure the file exists before attempting to delete it
<% ' declare variables dim fso, ourFile ' set the filename to delete ourFile = "Filename.txt" ' this deletes the file Set fso = Server.CreateObject("Scripting.FileSystemObject") fso.DeleteFile(ourFile) set fso = nothing ' clean up %> What is ASP?
What is PHP?