Error getting tags :
error 404Error getting tags :
error 404 delete file | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
delete file
Basics
Expander triangle
Type
Command
Syntax
delete file pathname
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk
Summary
Removes a file from the user's system.
Examples

delete file "/tmp/handlers.txt"
delete file "My Test.rev"

Additional Comments
Expander triangle

Use the delete file command to clean up by removing a file you created.

Parameters:

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

Comments:

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

If the file doesn't exist, is a folder, or for some other reason cannot be deleted, the result is set to "Can't delete that file.".

Caution! This command cannot be undone, so be very certain before you use it. The delete filecommand removes the file completely from the user's system. It does not place the file in the Trash or Recycle Bin.

User Comments
Expander triangle