JCL Help:FileDelete

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Delete file with the option to send it to recycle bin.


Pascal

 function FileDelete(const FileName: string; MoveToRecycleBin: Boolean = False): Boolean;


Parameters

Parameters Description
const FileName: string The name of the file to delete.
MoveToRecycleBin: Boolean = False If True, the file is move to the recycle bin/trash can (and still might be restored later); if False, it is to be deleted, allowing no recovery later.


Return Value

If the file has been successfully deleted the function returns True, otherwise it returns False.


Description

Delete file with the option to send it to recycle bin.


About

Unit

JclFileUtils


Donator

Jean-Fabien Connault


Contributors

Robert Rossmair


Platforms

Windows Unix


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page