commandbox.system.modules_app.system-commands.commands

Class delete

lucee.Component
    extended by commandbox.system.modules_app.system-commands.commands.delete

Delete a file or directory from the filesystem. Path may be absolute or relative to the current working directory. . {code:bash} delete sample.html {code} . Use the "force" param to supress the confirmation dialog. . {code:bash} delete sample.html --force {code} . Use the "recurse" param to remove a directory which is not empty. Trying to remove a non-empty directory will throw an error. This a safetly check to make sure you know what you are getting into. . {code:bash} delete myFolder/ --recurse {code}

Class Attributes:
  • aliases : rm,del
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(commandbox.system.modules_app.system-commands.commands.Globber path, [Boolean force='false'], [Boolean recurse='false'])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(commandbox.system.modules_app.system-commands.commands.Globber path, [Boolean force='false'], [Boolean recurse='false'])

    Parameters:
    path - file or directory to delete. Globbing patters allowed such as *.txt
    force - Force deletion without asking
    recurse - Delete sub directories