Deleting a file from your website
numero = 192
interpreted = N
texte =
DELETING a FILEIt is good practice to take this in two steps, starting with an "Are you sure?" type of warning before continuing to the actual delete code.[
deletefile path]Putting [deletefile file=fred] in your template immediately deletes the file called "fred" in the same folder as the template. Paths are relative to the template, so "somefolder/fred" deletes the file down a level from the template inside a folder called "somefolder," while "../fred" deletes the file in the folder one level up from the template.
This operation is undoable!
See also [writefile], [appendfile], [createfolder], [copyfile], [copyfolder], [movefile] and [deletefolder]
DELETING a FILEIt is good practice to take this in two steps, starting with an "Are you sure?" type of warning before continuing to the actual delete code.
[
deletefile path]
Putting [deletefile file=fred] in your template immediately deletes the file called "fred" in the same folder as the template. Paths are relative to the template, so "somefolder/fred" deletes the file down a level from the template inside a folder called "somefolder," while "../fred" deletes the file in the folder one level up from the template.
This operation is undoable!
See also
[writefile],
[appendfile],
[createfolder],
[copyfile],
[copyfolder],
[movefile] and
[deletefolder]
DOWNLOAD WEBDNA NOW!
Top Articles:
F.A.Q
A compilation of some user's questions...
Technical Change History
This Technical Change History provides a reverse chronological list of WebDNA changes...
WebDNA reference
...
Download WebDNA Applications
WebDNA applications...
WebDNA Libraries
A list of available libraries for WebDNA...
Tips and Tricks
A list of user-submitted tips ...
Related Readings:
[username]
Using [password] and [username] is an easy was to show the browser login dialog box...
[movefile]
This instructions move a file from one location to another...
[ddesend]
Sends text to a DDE server program on the local machine...
[return]
Explicitly identify what text is returned from a function call...
[url]
[url]...
[listfields]
Lists all the fields in the specified database...