Technical References - [deletefolder]

Deletes a folder from your website

numero = 191
interpreted = N
texte = Putting
[deletefolder path=StarShip]
in your template immediately deletes the folder called "StarShip" in the same folder as the template. Paths are relative to the template, so "somefolder/StarShip" deletes the folder down a level from the template inside a folder called "somefolder," while "../StarShip" deletes the folder inside the folder one level up from the template.

All files inside the folder are deleted, and all subfolders are deleted, as though you had dragged the folder to the trashcan and emptied it immediately. This operation is not undoable!

See also [writefile], [appendfile], [createfolder], [copyfile], [copyfolder], [movefile] and [deletefile] Putting
[deletefolder path=StarShip]

in your template immediately deletes the folder called "StarShip" in the same folder as the template. Paths are relative to the template, so "somefolder/StarShip" deletes the folder down a level from the template inside a folder called "somefolder," while "../StarShip" deletes the folder inside the folder one level up from the template.

All files inside the folder are deleted, and all subfolders are deleted, as though you had dragged the folder to the trashcan and emptied it immediately. This operation is not undoable!



See also [writefile], [appendfile], [createfolder], [copyfile], [copyfolder], [movefile] and [deletefile]

DOWNLOAD WEBDNA NOW!

Top Articles:

Tips and Tricks

A list of user-submitted tips ...

Download WebDNA Applications

WebDNA applications...

WebDNA Modules

A list of the currently available modules...

WebDNA reference

...

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...

Related Readings:

[addfields]

[addfields db=...

[store]

[store] is a simple context that stores variables permanently...

[if]

This context displays HTML or executes WebDNA conditionally only if the expression is true...

[url]

[url]...

[middle]

Extracts middle portion of the text between any two strings...

[renamefolder]

Rename a folder in your webspace...