Technical References - [deletefile]

Deleting a file from your website

DELETING a FILE
It 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...

WebDNA reference

A list of all WebDNA instructions...

Download WebDNA Applications

WebDNA applications...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

WebDNA Libraries

A list of available libraries for WebDNA...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Related Readings:

[include]

Include the contents of the specified file...

[version]

...

[filecompare]

Compares the size...

[setheader]

Changes header values in a shopping cart...

[waitforfile]

The server waits until the file appears on disk...

[cookie]

Cookies are a great way to remember visitors...