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:

WebDNA Libraries

A list of available libraries for WebDNA...

Tips and Tricks

A list of user-submitted tips ...

Download WebDNA Applications

WebDNA applications...

WebDNA Modules

A list of the currently available modules...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

F.A.Q

A compilation of some user's questions...

Related Readings:

[table]

[table] allows you to quickly create a temporary 'in line' database that is local to the template and not part of the global database cache...

[convertwords]

Changes specified words in a string of text to different words...

[commitdatabase]

[COMMITDATABASE db=name...

[protect]

...

[deletefolder]

Deletes a folder from your website...

[xsl]

Enables the WebDNA programmer to compile and apply XSL style sheets to XML data...