Method ya Delete ya ASP

Inasimulia na matumizi

Method ya Delete inafuta file au folda inayotumiwa kwa upyo.

Inasimulia:

FileObject.Delete[(force)]
FolderObject.Delete[(force)]
Paramaga Inasimulia
force Inayochaguliwa. Inaeleza kwamba kwa file au folda inayotumiwa kwa upyo au inafichwa, ni tatu. Kwa upyo haukufichwa, na hata ni false. Kwa msingi ni false.

Mifano wa kwa File

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("d:\test.txt")
f.Delete
set f=nothing
set fs=nothing
%>

Mifano wa kwa Folder

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("d:\test")
fo.Delete
set fo=nothing
set fs=nothing
%>