JCL Help:SHDeleteFolder

From Project JEDI Wiki
Jump to navigationJump to search


Deletes the specified folder.


 function SHDeleteFolder(Parent: THandle; const Folder: string; Options: TSHDeleteOptions): Boolean;


Parameters Description
Parent: THandle Handle of the window to serve as the parent of any dialogs displayed by this function. Specify GetDesktopWindow to use the desktop as the parent.
const Folder: string The folder to delete.
Options: TSHDeleteOptions Set of options that control the behavior of this function. See TSHDeleteOptions for more information.

Return Value

If the function succeeds the result is True, otherwise it is False.


SHDeleteFolder deletes the specified folder, either permanently or to the recycle bin depending on the Options parameter. Additionally the function provides visual feedback by displaying the familiar delete folder dialog you also see when deleting a folder through explorer.

See Also

TSHDeleteOptions SHDeleteFiles





Marcel van Brakel

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