RemoveDirectory

From SCAR Divi Manual
Jump to: navigation, search

Definition

function RemoveDirectory(const Path: string): Boolean;

Availability

SCAR Divi 3.25 > Current

Description

Removes a directory specified by Path. All subdirectories and files within it will recursively be removed as well.

Example

begin
  ForceDirectories(LogsPath + 'TestFolder\TestFolderSub\');
  RemoveDirectory(LogsPath + 'TestFolder\');
end.

See Also