Error getting tags :
error 404Error getting tags :
error 404 revDeleteFolder | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle
revDeleteFolder folderToDelete
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
None required
Removes a folder and all its contents.

revDeleteFolder "/data/Backup Folder"
revDeleteFolder myTempFolder

Additional Comments
Expander triangle

Use the revDeleteFolder function to remove a folder from the disk.


The folderToDelete specifies the name and location of the folder. If you specify a name but not a location, Revolution assumes the folder is in the defaultFolder.


The revDeleteFolder command removes the entire folder, including all files, subfolders, and their contents.

The revDeleteFolder command uses system services on each platform to perform the move. On Mac OS and OS X systems, it uses AppleScript; on Windows and Unix systems, it uses the shell function. Any errors encountered are returned in the result function.

On Mac OS and OS X systems, the revDeleteFolder command places the folder in the Trash.

Caution! This command can be used to rename or move files and folders your stack did not create. Of course, a stack should not rename or move files and folders it didn't create without obtaining explicit confirmation from the user.

Note: When included in a standalone application, the Common library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revDeleteFoldercommand is not yet available. This may affect attempts to use this command in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the revDeleteFoldercommand can be used in any handler.

User Comments
Expander triangle